diff options
author | midipix <writeonce@midipix.org> | 2016-04-10 16:05:06 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-10 16:05:06 -0400 |
commit | f22545d4ff7c89eb4e310373bc832aa48120df35 (patch) | |
tree | 173a27116b90608df105e744d074a0a3d7391bfe | |
parent | 4f79849f8590961f701f4c9ea923f259fc06c0b9 (diff) | |
download | slibtool-f22545d4ff7c89eb4e310373bc832aa48120df35.tar.bz2 slibtool-f22545d4ff7c89eb4e310373bc832aa48120df35.tar.xz |
driver: initialize the version elements before scanning input version-info.
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 69611a4..3f7d2c5 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -452,6 +452,8 @@ static int slbt_init_version_info( return 0; } + current = revision = age = 0; + sscanf(verinfo->verinfo,"%d:%d:%d", ¤t,&revision,&age); |