From ec650e8c3faaa78cdf6077249eb5cad48dbfa6a8 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 26 Jul 2022 16:50:32 +0200 Subject: [PATCH] allow empty array input links --- modules/database/src/ioc/db/dbConvertJSON.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/database/src/ioc/db/dbConvertJSON.c b/modules/database/src/ioc/db/dbConvertJSON.c index 865c43313..5b36d1c61 100644 --- a/modules/database/src/ioc/db/dbConvertJSON.c +++ b/modules/database/src/ioc/db/dbConvertJSON.c @@ -162,6 +162,11 @@ long dbPutConvertJSON(const char *json, short dbrType, if(INVALID_DB_REQ(dbrType)) return S_db_badDbrtype; + if (!jlen) { + *pnRequest = 0; + return 0; + } + parser->depth = 0; parser->dbrType = dbrType; parser->dbrSize = dbValueSize(dbrType);