From 0c00362c59825014b6f4a57c792afc07680461b1 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Thu, 8 Sep 2005 12:15:44 +0000 Subject: [PATCH] tools/gst-inspect.c fix a possible use of NULL string Original commit message from CVS: * tools/gst-inspect.c fix a possible use of NULL string --- tools/gst-inspect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index c2132c2edf..b755c3edf8 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -281,7 +281,8 @@ print_element_properties_info (GstElement * element) GParamSpecString *pstring = G_PARAM_SPEC_STRING (param); n_print ("%-23.23s String. ", ""); - g_print ("Default: \"%s\" ", pstring->default_value); + g_print ("Default: \"%s\" ", + pstring->default_value ? pstring->default_value : ""); if (readable) { const char *string_val = g_value_get_string (&value);