Permalink
Browse files

Possible fix for Raisonance RC51 compile error

  • Loading branch information...
1 parent 011ace7 commit 23e9227a6dec96a3f1acd579762073faa7f9557b @udp udp committed Feb 13, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 json.c
View
7 json.c
@@ -657,7 +657,12 @@ json_value * json_parse_ex (json_settings * settings, const json_char * json, ch
e_failed:
if (error_buf)
- strcpy (error_buf, *error ? error : "Unknown error");
+ {
+ if (*error)
+ strcpy (error_buf, error);
+ else
+ strcpy (error_buf, "Unknown error");
+ }
if (state.first_pass)
alloc = root;

0 comments on commit 23e9227

Please sign in to comment.