]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: use skip_space()
authorMasatake YAMATO <yamato@redhat.com>
Sat, 28 Jan 2023 03:09:02 +0000 (12:09 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 2 Feb 2023 14:23:45 +0000 (23:23 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-sock-xinfo.c

index 748aa2c35bf9b9467e3c0ef4b31bf323b7d844b7..9472b9c2b5a84a47018647bcba5662333ebf905a 100644 (file)
@@ -600,8 +600,7 @@ static bool L3_verify_initial_line(const char *line)
        line += 2;
 
        /* Skip white spaces. */
-       while (*line == ' ')
-               line++;
+       line = skip_space(line);
 
        return (strncmp(line, "sl", 2) == 0);
 }