mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 17:06:21 +00:00
Handle empty input on start
This commit is contained in:
@@ -17,6 +17,12 @@ int handle_start_command(char *inp)
|
|||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
|
// handle nothing
|
||||||
|
if (strlen(inp) == 0) {
|
||||||
|
gui_refresh();
|
||||||
|
return AWAIT_COMMAND;
|
||||||
|
}
|
||||||
|
|
||||||
// trim input and take a copy
|
// trim input and take a copy
|
||||||
char inp_cpy[100];
|
char inp_cpy[100];
|
||||||
inp = trim(inp);
|
inp = trim(inp);
|
||||||
|
|||||||
Reference in New Issue
Block a user