From: Junio C Hamano Date: Thu, 26 Jan 2017 20:49:12 GMT Subject: Re: [PATCH v3 4/4] urlmatch: allow globbing for the URL host part Message-ID: In-Reply-To: Junio C Hamano writes: > + while (url_len && pat_len) { > + const char *url_next = end_of_token(url, '.', url_len); > + const char *pat_next = end_of_token(pat, '.', pat_len); > + ... > } > > + return 1; Embarrassing. The last one must be "have they both run out?" i.e. return (!url_len && !pat_len);