aboutsummaryrefslogtreecommitdiff
path: root/src/value.c
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2010-03-23 08:15:19 +0200
committerPetri Lehtinen <petri@digip.org>2010-03-23 08:15:19 +0200
commit49880cbabeb597a9c748a3d5f37e9961a084dce3 (patch)
tree1fe3b13386ab90454214682e5fcddb4435b6e611 /src/value.c
parent66a69f3f1056da25446b01b18e01c9484f432c68 (diff)
parentf284e3c069abcdfc1145e939b0c284910c274d17 (diff)
downloadjansson-49880cbabeb597a9c748a3d5f37e9961a084dce3.zip
jansson-49880cbabeb597a9c748a3d5f37e9961a084dce3.tar.gz
jansson-49880cbabeb597a9c748a3d5f37e9961a084dce3.tar.bz2
Merge branch '1.2'
Diffstat (limited to 'src/value.c')
-rw-r--r--src/value.c6
1 files changed, 3 insertions, 3 deletions
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;
}