diff options
author | Benjamin Otte <otte@gnome.org> | 2008-12-01 12:17:43 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2008-12-01 12:17:43 +0000 |
commit | 6b6e3d205b213791ce716c6de9cf283e25f16680 (patch) | |
tree | 4534c5140381113097f0a1388dc7c7ec9e7eb27c | |
parent | e2ea0c9f80a1d70a5a5a22f0b65513fae7f5d66d (diff) |
make swfdec_as_object_peek_variable() return the value for getters, too
-rw-r--r-- | swfdec/swfdec_as_object.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/swfdec/swfdec_as_object.c b/swfdec/swfdec_as_object.c index 8ea79fc3..06abd579 100644 --- a/swfdec/swfdec_as_object.c +++ b/swfdec/swfdec_as_object.c @@ -812,8 +812,7 @@ swfdec_as_object_peek_variable (SwfdecAsObject *object, const char *name) SwfdecAsVariable *var; var = swfdec_as_object_hash_lookup (object, name); - if (var == NULL || - var->get != NULL) + if (var == NULL) return NULL; return &var->value; |