From b3bb9cce9a4dea9e8e4ab899042b3d9c9162cb5b Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 22 Nov 2020 01:00:34 +0100 Subject: libfshelp-tests: Fix warning * libfshelp-tests/test-lockf.c (parse_args): Do not call error() with a NULL pointer. --- libfshelp-tests/test-lockf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libfshelp-tests') diff --git a/libfshelp-tests/test-lockf.c b/libfshelp-tests/test-lockf.c index 629069b8..a96a7d67 100644 --- a/libfshelp-tests/test-lockf.c +++ b/libfshelp-tests/test-lockf.c @@ -110,7 +110,7 @@ int parse_args (int argc, char **argv, char **file_name, *len = tmp; } else - error (1, EINVAL, "%s", str); + error (1, EINVAL, "missing number"); continue; } if (strncmp (str, "st", 2) == 0) @@ -127,7 +127,7 @@ int parse_args (int argc, char **argv, char **file_name, *sleep_time = tmp; } else - error (1, EINVAL, "%s", str); + error (1, EINVAL, "missing number"); continue; } error (1, EINVAL, "%s", str); -- cgit v1.2.3