Don't try to send an empty method name

This commit is contained in:
Přemysl Eric Janouch 2014-09-29 20:40:14 +02:00
parent fdd447a7ea
commit a24fa3e305
1 changed files with 5 additions and 0 deletions

View File

@ -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++;