From 8ac542730009832e9a90ffc66ae1c8081de78f3b Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 12 Jul 2017 12:38:22 +0200 Subject: [PATCH] Test --- src/komodo_jumblr.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/komodo_jumblr.h b/src/komodo_jumblr.h index c1bd24d00..c8870b64f 100755 --- a/src/komodo_jumblr.h +++ b/src/komodo_jumblr.h @@ -118,8 +118,8 @@ struct jumblr_item *jumblr_opidfind(char *opid) struct jumblr_item *jumblr_opidadd(char *opid) { - struct jumblr_item *ptr; - if ( (ptr= jumblr_opidfind(opid)) == 0 ) + struct jumblr_item *ptr = 0; + if ( opid != 0 && (ptr= jumblr_opidfind(opid)) == 0 ) { ptr = (struct jumblr_item *)calloc(1,sizeof(*ptr)); safecopy(ptr->opid,opid,sizeof(ptr->opid)); @@ -382,6 +382,7 @@ void jumblr_opidsupdate() { if ( (n= cJSON_GetArraySize(array)) > 0 ) { + printf("%s -> n%d\n",retstr,n); for (i=0; i