diff options
author | Benjamin Otte <otte@gnome.org> | 2003-04-24 22:34:10 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2003-04-24 22:34:10 +0000 |
commit | d02583b999840e9456732a4b4a0a7e8745d2e824 (patch) | |
tree | 13befea3cd59e123c3562f29a4e221d301e4df1c /gst/parse | |
parent | e277d26a68eef6ccfd6edefa3a58e3a3babc1343 (diff) |
fix stupid segfault when setting integer properties
Original commit message from CVS:
fix stupid segfault when setting integer properties
Diffstat (limited to 'gst/parse')
-rw-r--r-- | gst/parse/grammar.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y index 2eee7ca97..1d694318c 100644 --- a/gst/parse/grammar.y +++ b/gst/parse/grammar.y @@ -267,7 +267,7 @@ gst_parse_element_set (gchar *value, GstElement *element, graph_t *graph) break; case G_TYPE_ENUM: { GEnumValue *en; - gchar **endptr = NULL; + gchar *endptr = NULL; GEnumClass *klass = (GEnumClass *) g_type_class_peek (G_PARAM_SPEC_VALUE_TYPE (pspec)); if (klass == NULL) goto error; if (!(en = g_enum_get_value_by_name (klass, pos))) @@ -275,8 +275,8 @@ gst_parse_element_set (gchar *value, GstElement *element, graph_t *graph) if (en) { g_value_set_enum (&v, en->value); } else { - gint i = strtol (value, endptr, 0); - if (**endptr == '\0') { + gint i = strtol (value, &endptr, 0); + if (*endptr == '\0') { g_value_set_enum (&v, i); } else { goto error; |