From ddd1e1f22374190a199db806cfdef4ac1f8d183b Mon Sep 17 00:00:00 2001 From: Robert Mu Date: Fri, 7 Oct 2016 22:11:19 +0800 Subject: [PATCH] Fix passing redundant argument to error_set() --- src/load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/load.c b/src/load.c index 7a8f96e..1acd6b7 100644 --- a/src/load.c +++ b/src/load.c @@ -340,7 +340,7 @@ static void lex_scan_string(lex_t *lex, json_error_t *error) /* control character */ lex_unget_unsave(lex, c); if(c == '\n') - error_set(error, lex, "unexpected newline", c); + error_set(error, lex, "unexpected newline"); else error_set(error, lex, "control character 0x%x", c); goto out;