mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-01-22 07:58:34 +01:00
Assume 1 if priority was not specified
This commit is contained in:
parent
7e524e0687
commit
ee2746e240
@ -170,7 +170,7 @@ static int priority(Token tok)
|
|||||||
EXPECT(TOK_STR);
|
EXPECT(TOK_STR);
|
||||||
|
|
||||||
Token number = token;
|
Token number = token;
|
||||||
EXPECT(TOK_INT);
|
int i = accept(TOK_INT) == STAT_OK ? number.val.i : 1;
|
||||||
|
|
||||||
char *name_str = get_str(name);
|
char *name_str = get_str(name);
|
||||||
if (add_priority(name_str, i) != OK) {
|
if (add_priority(name_str, i) != OK) {
|
||||||
|
Loading…
Reference in New Issue
Block a user