From a28e350cff1572a1e5a0c5df93f6e6005904689a Mon Sep 17 00:00:00 2001 From: rl1987 Date: Wed, 21 Feb 2018 20:25:24 +0100 Subject: Tweak loop condition --- 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 53e117f24c..497b60be15 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1145,7 +1145,7 @@ string_is_valid_hostname(const char *string) do { result = (TOR_ISALNUM(*c) || (*c == '-') || (*c == '_')); c++; - } while (result > 0 && *c); + } while (result && *c); if (result == 0) { break; -- cgit v1.2.3-54-g00ecf