X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=libcitadel%2Flib%2Fjson.c;h=d664700fa4850ef5d7e5426af9981fb7e5c0181d;hb=e802e46ef830b524fd845aea83969de875b144d0;hp=ff649f75a07d6754c5a7c75830e7c8b6bebbff46;hpb=1f63ff8f14e9bb33cff7efa690f7282bcd197188;p=citadel.git diff --git a/libcitadel/lib/json.c b/libcitadel/lib/json.c index ff649f75a..d664700fa 100644 --- a/libcitadel/lib/json.c +++ b/libcitadel/lib/json.c @@ -141,8 +141,7 @@ JsonValue *NewJsonNull(const char *Key, long keylen) { Ret = (JsonValue*) malloc(sizeof(JsonValue)); memset(Ret, 0, sizeof(JsonValue)); Ret->Type = JSON_NULL; - if (Key != NULL) - { + if (Key != NULL) { Ret->Name = NewStrBufPlain(Key, keylen); } Ret->Value = NewStrBufPlain(HKEY("nulll")); @@ -195,9 +194,7 @@ void SerializeJson(StrBuf *Target, JsonValue *Val, int FreeVal) { const char *Key; long keylen; - - switch (Val->Type) - { + switch (Val->Type) { case JSON_STRING: StrBufAppendBufPlain(Target, HKEY("\""), 0); StrECMAEscAppend(Target, Val->Value, NULL);