From 463e96d0bf6e364868fa2b3d7866a52ad345a332 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 18 Aug 2021 10:38:52 +0200 Subject: [PATCH] ipcmk: fix strtoul use, remove deadcode [coverity scan] Signed-off-by: Karel Zak --- sys-utils/ipcmk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/ipcmk.c b/sys-utils/ipcmk.c index d6e5ce6c98..9c1f60868c 100644 --- a/sys-utils/ipcmk.c +++ b/sys-utils/ipcmk.c @@ -125,7 +125,7 @@ int main(int argc, char **argv) { char *end = NULL; errno = 0; - permission = strtoul(optarg, NULL, 8); + permission = strtoul(optarg, &end, 8); if (errno || optarg == end || (end && *end)) err(EXIT_FAILURE, _("failed to parse mode")); break; -- 2.47.3