[Lldb-commits] [lldb] r197107 - Actually initialize the magic pointer to NULL safely

Enrico Granata egranata at apple.com
Wed Dec 11 17:47:35 PST 2013


Author: enrico
Date: Wed Dec 11 19:47:35 2013
New Revision: 197107

URL: http://llvm.org/viewvc/llvm-project?rev=197107&view=rev
Log:
Actually initialize the magic pointer to NULL safely


Modified:
    lldb/trunk/test/crashinfo.c

Modified: lldb/trunk/test/crashinfo.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/crashinfo.c?rev=197107&r1=197106&r2=197107&view=diff
==============================================================================
--- lldb/trunk/test/crashinfo.c (original)
+++ lldb/trunk/test/crashinfo.c Wed Dec 11 19:47:35 2013
@@ -17,7 +17,7 @@
 #include <string.h>
 #include <stdio.h>
 
-extern void *__crashreporter_info__;
+void *__crashreporter_info__ = NULL;
 
 asm(".desc ___crashreporter_info__, 0x10");
 





More information about the lldb-commits mailing list