INN commit: trunk/storage/buffindexed (buffindexed.c)

INN Commit rra at isc.org
Tue Jan 7 18:48:46 UTC 2020


    Date: Tuesday, January 7, 2020 @ 10:48:46
  Author: eagle
Revision: 10353

Suppress (spurious) uninitialized warnings

GCC 8.3 thinks that some variables in buffindexed/buffindexed.c
could be used uninitialized.  Initialize them to silence the
compiler.

Modified:
  trunk/storage/buffindexed/buffindexed.c

---------------+
 buffindexed.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: buffindexed.c
===================================================================
--- buffindexed.c	2019-10-31 01:37:59 UTC (rev 10352)
+++ buffindexed.c	2020-01-07 18:48:46 UTC (rev 10353)
@@ -2474,9 +2474,9 @@
     }
   }
   {
-    ARTNUM artnum;
-    char *data;
-    int len;
+    ARTNUM artnum = 0;
+    char *data = NULL;
+    int len = 0;
     TOKEN token;
     while (buffindexed_search((void *)search, &artnum, &data, &len, &token, NULL)) {
       if (len == 0)



More information about the inn-committers mailing list