]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
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 bd4dbf403f308d2bc79f6895147c91e78e1f1453..cd009fd2c2802d3874489cd62d9f6f7d44b4348e 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 2bf1543abe59eada3cb0de16857ccdd25ee4c6ed..a99f3c1488541f325f2dcbc857e3e27cb7928f84 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;