Skip to content

Commit

Permalink
asn1c skeleton: Make RETURN macro not overshadowing rval variable
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
  • Loading branch information
abbra committed Oct 27, 2023
1 parent 6b3c833 commit cfb2a49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions asn1/asn1c/constr_SET_OF_oer.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
#undef RETURN
#define RETURN(_code) \
do { \
asn_dec_rval_t rval; \
rval.code = _code; \
rval.consumed = consumed_myself; \
return rval; \
asn_dec_rval_t _rval; \
_rval.code = _code; \
_rval.consumed = consumed_myself;\
return _rval; \
} while(0)

/*
Expand Down

0 comments on commit cfb2a49

Please sign in to comment.