debuginfod-client: Initialize struct handle_data errbuf to the empty string.
authorMark Wielaard <mark@klomp.org>
Mon, 23 Nov 2020 16:52:02 +0000 (17:52 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 23 Nov 2020 16:52:02 +0000 (17:52 +0100)
Signed-off-by: Mark Wielaard <mark@klomp.org>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c

index bd4dbf4..cd009fd 100644 (file)
@@ -1,3 +1,8 @@
+2020-11-23  Mark Wielaard  <mark@klomp.org>
+
+       * debuginfod-client.c (debuginfod_query_server): Initialize
+       struct handle_data errbuf to the empty string.
+
 2020-11-11  Mark Wielaard  <mark@klomp.org>
 
        * debuginfod-client.c (debuginfod_set_verbose_fd): New function.
index 2bf1543..a99f3c1 100644 (file)
@@ -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;