summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-06-25 18:19:59 +0000
committermidipix <writeonce@midipix.org>2020-06-25 18:19:59 +0000
commit3156453e6b1877da6aa8b4f9c41c1a53c309056c (patch)
treed44f2185cc3e7b3a65a3aa7e194d2d1a8eed96e6
parentb54f55b33e2932c3438a7f22cb9e51c447486c2f (diff)
downloadslibtool-3156453e6b1877da6aa8b4f9c41c1a53c309056c.tar.bz2
slibtool-3156453e6b1877da6aa8b4f9c41c1a53c309056c.tar.xz
driver: slbt_init_host_params(): added missing initialization of ecode.
-rw-r--r--src/driver/slbt_driver_ctx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index b57dbae..ab28c44 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -810,6 +810,7 @@ static int slbt_init_host_params(
if (arprobe) {
sprintf(drvhost->ar,"%s-ar",host->host);
cfgmeta->ar = cfghost;
+ ecode = 127;
/* empty archive */
if ((arfd = mkstemp(archivename)) >= 0) {