diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2014-12-16 15:00:07 +0800 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-12-18 12:38:15 +0100 |
commit | 69d1b47b269deca6435cbdc09ed384fefb5882fa (patch) | |
tree | 7574d0e1e57e1fd2848545a52d57369a0cc631c1 | |
parent | def58eba24cc53f8761903145fef8db65e6e4760 (diff) | |
download | uci-69d1b47b269deca6435cbdc09ed384fefb5882fa.tar.gz |
file: fix error string about "unterminated XXX".
- Remove unreachable call to uci_parse_error().
- Fix false claim of unterminated double quote to single quote.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
-rw-r--r-- | file.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 '"); } /* |