]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/canonicalize: improve code readability for coverity scan
authorKarel Zak <kzak@redhat.com>
Thu, 11 Aug 2022 11:13:39 +0000 (13:13 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 11 Aug 2022 11:13:39 +0000 (13:13 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/canonicalize.c

index 6f85b47e5e12133c28eb1341821d9d9c66d87e0c..ccf52558f71433da6e748f4e48966617a767a8e9 100644 (file)
@@ -227,7 +227,7 @@ done:
        close(pipes[0]);
 
        /* We make a best effort to reap child */
-       waitpid(pid, NULL, 0);
+       ignore_result( waitpid(pid, NULL, 0) );
 
        errno = errsv;
        return canonical;