Browse Source

Allow null message to be passed to parse_method

master
Con Kolivas 9 years ago
parent
commit
0395403f9b
  1. 2
      src/generator.c

2
src/generator.c

@ -1164,6 +1164,8 @@ static bool parse_method(ckpool_t *ckp, proxy_instance_t *proxi, const char *msg
bool ret = false; bool ret = false;
const char *buf; const char *buf;
if (!msg)
goto out;
memset(&err, 0, sizeof(err)); memset(&err, 0, sizeof(err));
val = json_loads(msg, 0, &err); val = json_loads(msg, 0, &err);
if (!val) { if (!val) {

Loading…
Cancel
Save