summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-10 16:05:06 -0400
committermidipix <writeonce@midipix.org>2016-04-10 16:05:06 -0400
commitf22545d4ff7c89eb4e310373bc832aa48120df35 (patch)
tree173a27116b90608df105e744d074a0a3d7391bfe /src
parent4f79849f8590961f701f4c9ea923f259fc06c0b9 (diff)
downloadslibtool-f22545d4ff7c89eb4e310373bc832aa48120df35.tar.bz2
slibtool-f22545d4ff7c89eb4e310373bc832aa48120df35.tar.xz
driver: initialize the version elements before scanning input version-info.
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c2
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",
&current,&revision,&age);