From efe33fabbb849bc4337d9d96f09d230945f4b794 Mon Sep 17 00:00:00 2001 From: Dave Gamble Date: Wed, 9 Dec 2009 12:31:32 +0000 Subject: [PATCH] ID: 2907153 declare variable first, so we're proper c ;) git-svn-id: http://svn.code.sf.net/p/cjson/code@25 e3330c51-1366-4df0-8b21-3ccf24e3d50e --- cJSON.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 62d7bf2..45be994 100644 --- a/cJSON.c +++ b/cJSON.c @@ -256,8 +256,8 @@ static const char *parse_value(cJSON *item,const char *value) // Render a value to text. static char *print_value(cJSON *item,int depth,int fmt) { - if (!item) return 0; char *out=0; + if (!item) return 0; switch ((item->type)&255) { case cJSON_NULL: out=cJSON_strdup("null"); break;