Skip to content

Commit

Permalink
merge: switch
Browse files Browse the repository at this point in the history
  • Loading branch information
bazsi committed Jan 19, 2025
1 parent ce5ecf9 commit 94f8ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filterx/filterx-grammar.ym
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ switch_case
;

cases
: case cases { $$ = g_list_prepend($2, $1); }
: case cases { if ($1) $$ = g_list_prepend($2, $1); else $$ = $2; }
| { $$ = NULL; }
;

Expand Down

0 comments on commit 94f8ae4

Please sign in to comment.