Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
930422aa34
  1. 2
      basilisk/basilisk_MSG.c

2
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 )

Loading…
Cancel
Save