Skip to content

Commit

Permalink
fix w
Browse files Browse the repository at this point in the history
  • Loading branch information
thradams committed Mar 7, 2024
1 parent ead7f6c commit e843290
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/expressions.c
Original file line number Diff line number Diff line change
Expand Up @@ -1206,9 +1206,8 @@ struct object* expression_get_object(struct expression* p_expression, struct obj
return &p_expression->declarator->object;
}
else if (p_expression->expression_type == UNARY_EXPRESSION_CONTENT)
{
struct object temp_obj = { 0 };
struct object* p_obj = expression_get_object(p_expression->right, &temp_obj);
{
struct object* p_obj = expression_get_object(p_expression->right, p_object);
if (p_obj)
{
return object_get_pointed_object(p_obj);
Expand Down

0 comments on commit e843290

Please sign in to comment.