diff options
author | Benjamin Otte <otte@gnome.org> | 2003-04-25 00:26:09 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2003-04-25 00:26:09 +0000 |
commit | b04519c43dd64387e20db214185ec0eff80e53d5 (patch) | |
tree | f84d209a90a1a5081910b241ddd9dc8b491b6411 /gst/parse | |
parent | d02583b999840e9456732a4b4a0a7e8745d2e824 (diff) |
just to be sure...
Original commit message from CVS:
just to be sure...
Diffstat (limited to 'gst/parse')
-rw-r--r-- | gst/parse/grammar.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y index 1d694318c..69602917a 100644 --- a/gst/parse/grammar.y +++ b/gst/parse/grammar.y @@ -276,7 +276,7 @@ gst_parse_element_set (gchar *value, GstElement *element, graph_t *graph) g_value_set_enum (&v, en->value); } else { gint i = strtol (value, &endptr, 0); - if (*endptr == '\0') { + if (endptr && *endptr == '\0') { g_value_set_enum (&v, i); } else { goto error; |