mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
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:
parent
6520cc20be
commit
0c00362c59
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue