logo

utils-std

Collection of commonly available Unix tools
commit: 3d2b46bceac5de0cd651355dd8bbfb300bfd6548
parent a391c455ff8b8eaa212c1a6258445a8625b7005c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 31 Mar 2024 15:56:55 +0200

cmd/realpath: add flawfinder ignores

Diffstat:

Mcmd/realpath.c3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/realpath.c b/cmd/realpath.c @@ -64,7 +64,7 @@ main(int argc, char *argv[]) return 1; } - /* flawfinder: ignore */ + /* flawfinder: ignore, NULL given */ char *file = realpath(path, NULL); if(file) { @@ -101,6 +101,7 @@ main(int argc, char *argv[]) errno = 0; + /* flawfinder: ignore, NULL given */ char *parent = realpath(path, NULL); if(!parent) {