From 73cc2eb40591aa02c69fbd798ffffe4d384f3708 Mon Sep 17 00:00:00 2001 From: kanoi Date: Sat, 24 Jan 2015 15:21:39 +1100 Subject: [PATCH] ckdb - breakdown() allow zero length string values --- src/ckdb.c | 12 ------------ src/ckdb.h | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/ckdb.c b/src/ckdb.c index 770a8c5a..70e1380a 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -1363,18 +1363,6 @@ static enum cmd_values breakdown(K_TREE **trf_root, K_STORE **trf_store, K_WUNLOCK(transfer_free); return CMD_REPLY; } - if (end <= next+1) { - LOGERR("JSON '%s' zero length value " - "was: %.32s...", - transfer->name, - tmp = safe_text(was)); - free(tmp); - free(cmdptr); - K_WLOCK(transfer_free); - k_add_head(transfer_free, item); - K_WUNLOCK(transfer_free); - return CMD_REPLY; - } siz = end - next; end++; } else if (*next == JSON_ARRAY) { diff --git a/src/ckdb.h b/src/ckdb.h index dd85c418..4944ff81 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -52,7 +52,7 @@ #define DB_VLOCK "1" #define DB_VERSION "0.9.6" -#define CKDB_VERSION DB_VERSION"-0.901" +#define CKDB_VERSION DB_VERSION"-0.902" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__