X-Git-Url: http://www.project-moonshot.org/gitweb/?p=jansson.git;a=blobdiff_plain;f=src%2Fvalue.c;h=7c41c89df90e13f337cae9968bdf386c89a3ebab;hp=f74c684f1aea935a0845ecfac190d89faafc24a6;hb=49880cbabeb597a9c748a3d5f37e9961a084dce3;hpb=66a69f3f1056da25446b01b18e01c9484f432c68 diff --git a/src/value.c b/src/value.c index f74c684..7c41c89 100644 --- a/src/value.c +++ b/src/value.c @@ -833,7 +833,7 @@ json_t *json_true(void) { static json_t the_true = { .type = JSON_TRUE, - .refcount = (unsigned int)1 + .refcount = (unsigned int)-1 }; return &the_true; } @@ -843,7 +843,7 @@ json_t *json_false(void) { static json_t the_false = { .type = JSON_FALSE, - .refcount = (unsigned int)1 + .refcount = (unsigned int)-1 }; return &the_false; } @@ -853,7 +853,7 @@ json_t *json_null(void) { static json_t the_null = { .type = JSON_NULL, - .refcount = (unsigned int)1 + .refcount = (unsigned int)-1 }; return &the_null; }