summaryrefslogtreecommitdiffstats
path: root/test/test-segfault.c
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2005-11-30 19:32:27 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2005-11-30 19:32:27 +0000
commit0ca96ec548a6e4a1e39429f3c0480adfe7e2eab8 (patch)
tree90cf95cc76cdd8e3242eb94e9ae7703b8fbd829d /test/test-segfault.c
parent111118fd8a9240440ec0e4b9710bebf91e186881 (diff)
* dbus/dbus-auth.c, dbus/dbus-connection.c, dbus/dbus-keyring.c,
dbus/dbus-server-debug-pipe.c, glib/dbus-binding-tool-glib.c glib/dbus-glib-tool.c, glib/dbus-gparser.c, glib/dbus-gproxy.c test/test-segfault.c, test/test-utils.c, test/glib/test-dbus-glib.c, tools/dbus-cleanup-sockets.c tools/dbus-launch.c, tools/dbus-tree-view.c, tools/dbus-viewer.c: Various cleanup of dead code and compiler warnings (patch from Kjartan Maraas <kmaraas at gnome.org>)
Diffstat (limited to 'test/test-segfault.c')
-rw-r--r--test/test-segfault.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-segfault.c b/test/test-segfault.c
index 94b42749..6a99131e 100644
--- a/test/test-segfault.c
+++ b/test/test-segfault.c
@@ -1,4 +1,5 @@
/* This is simply a process that segfaults */
+#include <stdlib.h>
#include <signal.h>
#include <sys/time.h>
@@ -17,7 +18,7 @@ main (int argc, char **argv)
raise (SIGSEGV);
- p = 0;
+ p = NULL;
*p = 'a';
return 0;