projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
def58eb
)
file: fix error string about "unterminated XXX".
author
Yousong Zhou
<
[email protected]
>
Tue, 16 Dec 2014 07:00:07 +0000
(15:00 +0800)
committer
Felix Fietkau
<
[email protected]
>
Thu, 18 Dec 2014 11:38:15 +0000
(12:38 +0100)
- Remove unreachable call to uci_parse_error().
- Fix false claim of unterminated double quote to single quote.
Signed-off-by: Yousong Zhou <
[email protected]
>
file.c
patch
|
blob
|
history
diff --git
a/file.c
b/file.c
index 3f02c119905febdc52508f6cc79cb5182ea75263..0fc68a64f4f11b5d4a55ffb3919bc9be9dfc052f 100644
(file)
--- a/
file.c
+++ b/
file.c
@@
-157,7
+157,6
@@
static void parse_double_quote(struct uci_context *ctx, int *target)
break;
}
}
- uci_parse_error(ctx, "unterminated \"");
}
/*
@@
-180,14
+179,13
@@
static void parse_single_quote(struct uci_context *ctx, int *target)
/* Multi-line str value */
uci_getln(ctx, pctx->pos);
if (!pctx_cur_char(pctx))
- uci_parse_error(ctx, "EOF with unterminated
\"
");
+ uci_parse_error(ctx, "EOF with unterminated
'
");
break;
default:
addc(ctx, target, &pctx->pos);
}
}
- uci_parse_error(ctx, "unterminated '");
}
/*