diff options
Diffstat (limited to 'json-rpc-shell.c')
-rw-r--r-- | json-rpc-shell.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c index 9edb937..149afa2 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -494,6 +494,11 @@ process_input (struct app_context *ctx, char *user_input) char *p = input; while (*p && isspace_ascii (*p)) p++; + + // No input + if (!*p) + goto fail; + char *method = p; while (*p && !isspace_ascii (*p)) p++; |