]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Martin Huter <m.huter@phion.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 2 Feb 2009 06:54:38 +0000 (19:54 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 2 Feb 2009 06:54:38 +0000 (19:54 +1300)
Bug 2563: 99+% CPU Usage on FTP URL

src/mime.cc

index add53c4a4deda84b7452f84415dac73921308fe6..c08201c9f5fbe76aeebd874b34e451575022c919 100644 (file)
@@ -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)