projects
/
citadel
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f638dfd
)
Fix json structures; need to use the LKEY & lHashfunc
author
Wilfried Goesgens
<willi@arangodb.com>
Mon, 12 Oct 2015 17:48:24 +0000
(19:48 +0200)
committer
Wilfried Goesgens
<willi@arangodb.com>
Mon, 12 Oct 2015 17:48:24 +0000
(19:48 +0200)
libcitadel/lib/json.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/json.c
b/libcitadel/lib/json.c
index db10cad1cfdfb4e9426e7c839be1d016d646f2d4..63fcbdcb9adf701b96f86161727cc448bf2c5634 100644
(file)
--- a/
libcitadel/lib/json.c
+++ b/
libcitadel/lib/json.c
@@
-80,7
+80,7
@@
JsonValue *NewJsonArray(const char *Key, long keylen)
Ret->Type = JSON_ARRAY;
if (Key != NULL)
Ret->Name = NewStrBufPlain(Key, keylen);
- Ret->SubValues = NewHash(1, Flathash);
+ Ret->SubValues = NewHash(1,
l
Flathash);
return Ret;
}
@@
-177,7
+177,7
@@
void JsonArrayAppend(JsonValue *Array, JsonValue *Val)
return; /* todo assert! */
n = GetCount(Array->SubValues);
- Put(Array->SubValues,
(const char*) &n, sizeof
(n), Val, DeleteJSONValue);
+ Put(Array->SubValues,
LKEY
(n), Val, DeleteJSONValue);
}
void JsonObjectAppend(JsonValue *Array, JsonValue *Val)