summaryrefslogtreecommitdiff
path: root/gst/parse
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2003-04-25 00:26:09 +0000
committerBenjamin Otte <otte@gnome.org>2003-04-25 00:26:09 +0000
commitb04519c43dd64387e20db214185ec0eff80e53d5 (patch)
treef84d209a90a1a5081910b241ddd9dc8b491b6411 /gst/parse
parentd02583b999840e9456732a4b4a0a7e8745d2e824 (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.y2
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;