I was just building trunk and noticed this warning about the use of a potentially uninitialized variable. The compiler is technically correct ...

Index: lib/util.c
===================================================================
--- lib/util.c  (revision 1499)
+++ lib/util.c  (working copy)
@@ -546,7 +546,7 @@
 {
        uint32_t handle;
        uint32_t check;
-       void *newHandles;
+       void *newHandles = NULL;
        int found = 0;
        void *instance;
        int i;

--
Russell Bryant
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to