summaryrefslogtreecommitdiff
path: root/daemon/da_protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/da_protocol.c')
-rw-r--r--daemon/da_protocol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/daemon/da_protocol.c b/daemon/da_protocol.c
index 8ec2583..f99d0e6 100644
--- a/daemon/da_protocol.c
+++ b/daemon/da_protocol.c
@@ -835,6 +835,9 @@ static struct binary_ack* binary_ack_alloc(const char *filename)
char builddir[PATH_MAX];
char binpath[PATH_MAX];
+ builddir[0]='\0';
+ binpath[0]='\0';
+
if (stat(filename, &decoy) == 0) {
ba->type = get_binary_type(filename);
@@ -844,8 +847,6 @@ static struct binary_ack* binary_ack_alloc(const char *filename)
if (builddir[0] != '\0')
snprintf(binpath, sizeof(binpath), check_windows_path(builddir) ?
"%s\\%s" : "%s/%s", builddir, basename(filename) ?: "");
- else
- binpath[0] = '\0';
ba->binpath = strdup(binpath);
get_file_md5sum(ba->digest, filename);