diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-11-22 00:58:26 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-11-22 00:58:26 +0100 |
commit | 1ddc886556de68917dec2392368de6d6642348f7 (patch) | |
tree | a6ab6ff4aa456392906e3a7e1ad3a7d397714f4f /libfshelp-tests | |
parent | 40afa63992c7ad6e0812fa71f58f9336a04ec0bc (diff) | |
download | hurd-1ddc886556de68917dec2392368de6d6642348f7.tar.gz hurd-1ddc886556de68917dec2392368de6d6642348f7.tar.bz2 hurd-1ddc886556de68917dec2392368de6d6642348f7.zip |
libfshelp-tests: Fix warning
* libfshelp-tests/test-flock.c (parse_args): Do not call error() with a
NULL pointer.
Diffstat (limited to 'libfshelp-tests')
-rw-r--r-- | libfshelp-tests/test-flock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libfshelp-tests/test-flock.c b/libfshelp-tests/test-flock.c index 700aa25c..21e0e424 100644 --- a/libfshelp-tests/test-flock.c +++ b/libfshelp-tests/test-flock.c @@ -114,7 +114,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); |