From: Mark Wielaard Date: Mon, 23 Nov 2020 16:52:02 +0000 (+0100) Subject: debuginfod-client: Initialize struct handle_data errbuf to the empty string. X-Git-Tag: elfutils-0.183~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b82ac67d8a71c14f64fe4932ca7fe822ff75231;p=thirdparty%2Felfutils.git debuginfod-client: Initialize struct handle_data errbuf to the empty string. Signed-off-by: Mark Wielaard --- diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog index bd4dbf403..cd009fd2c 100644 --- a/debuginfod/ChangeLog +++ b/debuginfod/ChangeLog @@ -1,3 +1,8 @@ +2020-11-23 Mark Wielaard + + * debuginfod-client.c (debuginfod_query_server): Initialize + struct handle_data errbuf to the empty string. + 2020-11-11 Mark Wielaard * debuginfod-client.c (debuginfod_set_verbose_fd): New function. diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c index 2bf1543ab..a99f3c148 100644 --- a/debuginfod/debuginfod-client.c +++ b/debuginfod/debuginfod-client.c @@ -756,6 +756,7 @@ debuginfod_query_server (debuginfod_client *c, { data[i].handle = NULL; data[i].fd = -1; + data[i].errbuf[0] = '\0'; } char *strtok_saveptr;