From 1ddc886556de68917dec2392368de6d6642348f7 Mon Sep 17 00:00:00 2001
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sun, 22 Nov 2020 00:58:26 +0100
Subject: libfshelp-tests: Fix warning

* libfshelp-tests/test-flock.c (parse_args): Do not call error() with a
NULL pointer.
---
 libfshelp-tests/test-flock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'libfshelp-tests')

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);
-- 
cgit v1.2.3