Skip to content

Commit

Permalink
recv_json: return NULL on zero input
Browse files Browse the repository at this point in the history
  • Loading branch information
LBCrion committed Mar 13, 2023
1 parent 7d1af7f commit e9357cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ json_object *recv_json ( gint sock, gint32 len )
static gchar *buf;
const gint bufsize = 1024;
json_tokener *tok;
json_object *json;
json_object *json = NULL;
gint rlen;

if(!buf)
Expand Down

0 comments on commit e9357cc

Please sign in to comment.