diff --git a/basilisk/basilisk_MSG.c b/basilisk/basilisk_MSG.c index 2aeb4fb87..c64269041 100755 --- a/basilisk/basilisk_MSG.c +++ b/basilisk/basilisk_MSG.c @@ -49,7 +49,7 @@ char *basilisk_respond_addmessage(struct supernet_info *myinfo,uint8_t *key,int3 cJSON *basilisk_respond_getmessage(struct supernet_info *myinfo,uint8_t *key,int32_t keylen) { - cJSON *msgjson; struct basilisk_message *msg; char *ptr = 0,strbuf[32768]; + cJSON *msgjson=0; struct basilisk_message *msg; char *ptr = 0,strbuf[32768]; portable_mutex_lock(&myinfo->messagemutex); HASH_FIND(hh,myinfo->messagetable,key,keylen,msg); if ( msg != 0 )