Skip to content

Commit

Permalink
xlog_level: Do not abort startup on a negative value
Browse files Browse the repository at this point in the history
(cherry picked from commit 16472ab)
  • Loading branch information
liviuchircu committed Feb 20, 2023
1 parent af4d6a0 commit 3bd9e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfg.y
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ assign_stm: LOGLEVEL EQUAL snumber { IFOR();
| XLOG_BUF_SIZE EQUAL error { yyerror("number expected"); }
| XLOG_FORCE_COLOR EQUAL error { yyerror("boolean value expected"); }
| XLOG_PRINT_LEVEL EQUAL error { yyerror("number expected"); }
| XLOG_LEVEL EQUAL NUMBER { IFOR();
| XLOG_LEVEL EQUAL snumber { IFOR();
*xlog_level = $3; }
| XLOG_LEVEL EQUAL error { yyerror("number expected"); }
| SOCKET EQUAL socket_def { IFOR();
Expand Down

0 comments on commit 3bd9e9b

Please sign in to comment.