Properly initialize values that'll be checked in boolean context later with NULL.
Florian Ragwitz [Thu, 4 Dec 2008 02:03:09 +0000 (02:03 +0000)]
MOP.xs

diff --git a/MOP.xs b/MOP.xs
index 6f9f17b..06c828c 100644 (file)
--- a/MOP.xs
+++ b/MOP.xs
@@ -251,7 +251,7 @@ get_all_package_symbols(self, ...)
 
                 while ( (he = hv_iternext(stash)) ) {
                     SV *const gv = HeVAL(he);
-                    SV *sv;
+                    SV *sv = NULL;
                     char *key;
                     STRLEN keylen;
                     char *package;