Browse Source

No need for strlen()

Thanks Hiltjo!
master
sin 9 years ago
parent
commit
d1d086d91e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      noice.c

+ 1
- 1
noice.c View File

@@ -344,7 +344,7 @@ readln(void)
noecho();
curs_set(FALSE);
timeout(1000);
return strlen(ln) ? strdup(ln) : NULL;
return ln[0] ? strdup(ln) : NULL;
}

/*


Loading…
Cancel
Save