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
This commit is contained in:
Steve Lhomme 2005-09-08 12:15:44 +00:00
parent 6520cc20be
commit 0c00362c59

View file

@ -281,7 +281,8 @@ print_element_properties_info (GstElement * element)
GParamSpecString *pstring = G_PARAM_SPEC_STRING (param); GParamSpecString *pstring = G_PARAM_SPEC_STRING (param);
n_print ("%-23.23s String. ", ""); n_print ("%-23.23s String. ", "");
g_print ("Default: \"%s\" ", pstring->default_value); g_print ("Default: \"%s\" ",
pstring->default_value ? pstring->default_value : "");
if (readable) { if (readable) {
const char *string_val = g_value_get_string (&value); const char *string_val = g_value_get_string (&value);