]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix build break
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 10 Mar 2019 08:53:18 +0000 (14:23 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 10 Mar 2019 09:39:50 +0000 (15:09 +0530)
src/nnn.c

index 883a2508395259e4636ed80e352fb2d76efa4df3..c26002626fc80ef64fdf016b3799f2cac9f346fe 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -974,19 +974,18 @@ static bool initcurses(void)
        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)
 {
        int count = 0;
 
        argv[count++] = line;
 
-       while (*line) {
+       while (*line) { // NOLINT
                if (isblank(*line)) {
                        *line++ = '\0';
 
-                       if (!*line)
+                       if (!*line) // NOLINT
                                return count;
 
                        argv[count++] = line;