From e1b04e26cf8b79a07c85cd8272b6677faa4e12ce Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 5 Mar 2004 02:30:10 +0000 Subject: examples/gstplay/player.c: Initialize variables to NULL. Prevents a segfault because the (uninitialized) variable is ... Original commit message from CVS: * examples/gstplay/player.c: (main): Initialize variables to NULL. Prevents a segfault because the (uninitialized) variable is not NULL, resulting in a crash on trying to reach error->message. --- examples/gstplay/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/gstplay/player.c b/examples/gstplay/player.c index 8aabe69d..32001a90 100644 --- a/examples/gstplay/player.c +++ b/examples/gstplay/player.c @@ -100,7 +100,7 @@ main (int argc, char *argv[]) { GstPlay *play; GstElement *data_src, *video_sink, *audio_sink, *vis_element; - GError *error; + GError *error = NULL; /* Initing GStreamer library */ gst_init (&argc, &argv); -- cgit v1.2.1