summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-22 00:58:26 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-22 00:58:26 +0100
commit1ddc886556de68917dec2392368de6d6642348f7 (patch)
treea6ab6ff4aa456392906e3a7e1ad3a7d397714f4f
parent40afa63992c7ad6e0812fa71f58f9336a04ec0bc (diff)
libfshelp-tests: Fix warning
* libfshelp-tests/test-flock.c (parse_args): Do not call error() with a NULL pointer.
-rw-r--r--libfshelp-tests/test-flock.c2
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);