Skip to content

Commit

Permalink
glw/propName(): Avoid NULL deref
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Mar 3, 2015
1 parent 7338f59 commit b04a68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/glw/glw_view_eval.c
Expand Up @@ -6423,7 +6423,7 @@ glwf_propName(glw_view_eval_context_t *ec, struct token *self,
if((a = resolve_property_name2(ec, argv[0])) == NULL)
return -1;

if(a->type == TOKEN_PROPERTY_REF) {
if(a->type == TOKEN_PROPERTY_REF && a->t_prop != NULL) {
r = eval_alloc(self, ec, TOKEN_RSTRING);
r->t_rstring = prop_get_name(a->t_prop);
} else {
Expand Down

0 comments on commit b04a68c

Please sign in to comment.