From 09351c34e9bea4d29fb6f4ac8d40e3bee49e12fc Mon Sep 17 00:00:00 2001 From: rl1987 Date: Thu, 22 Feb 2018 19:52:40 +0100 Subject: Don't strlen before checking for NULL --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util.c b/src/common/util.c index 497b60be15..5ae4d04082 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1079,7 +1079,7 @@ string_is_valid_dest(const char *string) { char *tmp = NULL; int retval; - size_t len = strlen(string); + size_t len; if (string == NULL) return 0; -- cgit v1.2.3-54-g00ecf