From: Amos Jeffries Date: Tue, 27 Jan 2009 11:40:08 +0000 (+1300) Subject: Author: Martin Huter X-Git-Tag: SQUID_3_2_0_1~1238 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c06ad5f53419fe22b697a95e252e1805f663312;p=thirdparty%2Fsquid.git Author: Martin Huter Bug 2563: 99+% CPU Usage on FTP URL --- diff --git a/src/mime.cc b/src/mime.cc index add53c4a4d..c08201c9f5 100644 --- a/src/mime.cc +++ b/src/mime.cc @@ -226,10 +226,11 @@ static mimeEntry * mimeGetEntry(const char *fn, int skip_encodings) { mimeEntry *m; - char *t = NULL; + char *t; char *name = xstrdup(fn); do { + t = NULL; for (m = MimeTable; m; m = m->next) { if (regexec(&m->compiled_pattern, name, 0, 0, 0) == 0)