[cfe-commits] [libcxxabi] r160932 - /libcxxabi/trunk/src/cxa_demangle.cpp

Howard Hinnant hhinnant at apple.com
Sun Jul 29 09:14:53 PDT 2012


Author: hhinnant
Date: Sun Jul 29 11:14:52 2012
New Revision: 160932

URL: http://llvm.org/viewvc/llvm-project?rev=160932&view=rev
Log:
Andrew Morrow:  The variable 't1' on line 10188 of cxa_demangle.cpp is uninitialized
which generates -Wsometimes-uninitialized.  Howard:  The only thing this patch is missing is an update to CREDITS.TXT.

Modified:
    libcxxabi/trunk/src/cxa_demangle.cpp

Modified: libcxxabi/trunk/src/cxa_demangle.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_demangle.cpp?rev=160932&r1=160931&r2=160932&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_demangle.cpp (original)
+++ libcxxabi/trunk/src/cxa_demangle.cpp Sun Jul 29 11:14:52 2012
@@ -10185,7 +10185,7 @@
         {
             bool can_sub = true;
             bool make_nested = true;
-            const char* t1;
+            const char* t1 = NULL;
             switch (*t0)
             {
             case '1':





More information about the cfe-commits mailing list