projects
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff57dee
)
scope error. result points to a out-of-score variable.
author
Andrea Marchesini
<baku@ippolita.net>
Tue, 20 Sep 2011 11:10:32 +0000
(13:10 +0200)
committer
Andrea Marchesini
<baku@ippolita.net>
Tue, 20 Sep 2011 11:10:32 +0000
(13:10 +0200)
src/load.c
patch
|
blob
|
history
diff --git
a/src/load.c
b/src/load.c
index
8a53f13
..
9dc971a
100644
(file)
--- a/
src/load.c
+++ b/
src/load.c
@@
-69,6
+69,7
@@
static void error_set(json_error_t *error, const lex_t *lex,
{
va_list ap;
char msg_text[JSON_ERROR_TEXT_LENGTH];
+ char msg_with_context[JSON_ERROR_TEXT_LENGTH];
int line = -1, col = -1;
size_t pos = 0;
@@
-84,7
+85,6
@@
static void error_set(json_error_t *error, const lex_t *lex,
if(lex)
{
const char *saved_text = strbuffer_value(&lex->saved_text);
- char msg_with_context[JSON_ERROR_TEXT_LENGTH];
line = lex->stream.line;
col = lex->stream.column;