mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Fix build break
This commit is contained in:
parent
8b1ef2d9d5
commit
59db99f75d
1 changed files with 3 additions and 4 deletions
|
@ -974,19 +974,18 @@ static bool initcurses(void)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NOTE: There's no NULL check here */
|
/* No NULL check here as spawn() guards against it */
|
||||||
|
|
||||||
static int parseargs(char *line, char **argv)
|
static int parseargs(char *line, char **argv)
|
||||||
{
|
{
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
argv[count++] = line;
|
argv[count++] = line;
|
||||||
|
|
||||||
while (*line) {
|
while (*line) { // NOLINT
|
||||||
if (isblank(*line)) {
|
if (isblank(*line)) {
|
||||||
*line++ = '\0';
|
*line++ = '\0';
|
||||||
|
|
||||||
if (!*line)
|
if (!*line) // NOLINT
|
||||||
return count;
|
return count;
|
||||||
|
|
||||||
argv[count++] = line;
|
argv[count++] = line;
|
||||||
|
|
Loading…
Add table
Reference in a new issue