From 58ff15ca2c09a3b79fca381035090b917f3db39c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Wed, 21 Feb 2018 15:56:58 +0100 Subject: [PATCH] Remove C99 loop construct --- src/psl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/psl.c b/src/psl.c index 323409c..10d472d 100644 --- a/src/psl.c +++ b/src/psl.c @@ -1054,7 +1054,8 @@ const char *psl_unregistrable_domain(const psl_ctx_t *psl, const char *domain) */ int nlabels = 0; - for (const char *p = domain + strlen(domain) - 1; p >= domain; p--) { + const char *p; + for (p = domain + strlen(domain) - 1; p >= domain; p--) { if (*p == '.' && ++nlabels > 8) { domain = p + 1; break;