summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2008-12-01 12:17:43 +0000
committerBenjamin Otte <otte@gnome.org>2008-12-01 12:17:43 +0000
commit6b6e3d205b213791ce716c6de9cf283e25f16680 (patch)
tree4534c5140381113097f0a1388dc7c7ec9e7eb27c
parente2ea0c9f80a1d70a5a5a22f0b65513fae7f5d66d (diff)
make swfdec_as_object_peek_variable() return the value for getters, too
-rw-r--r--swfdec/swfdec_as_object.c3
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;