]> granicus.if.org Git - apache/commitdiff
sneaky for loop... make it more obvious what it is doing
authorGreg Stein <gstein@apache.org>
Mon, 12 Feb 2001 03:02:05 +0000 (03:02 +0000)
committerGreg Stein <gstein@apache.org>
Mon, 12 Feb 2001 03:02:05 +0000 (03:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88105 13f79535-47bb-0310-9956-ffa450edef68

modules/http/mod_mime.c

index a8d60b9f68164c7a723bb1ff10970b623f61008b..deed283cd409c38f4694fc5b26d6c39966eb6ea8 100644 (file)
@@ -506,7 +506,8 @@ static content_type *analyze_ct(request_rec *r, char *s)
     cp++;
     mp = cp;
 
-    for (; *cp != ';' && *cp != '\0'; cp++);
+    for (; *cp != ';' && *cp != '\0'; cp++)
+        continue;
     ctp->subtype = apr_pstrndup(p, mp, cp - mp);
     ctp->subtype = zap_sp(ctp->subtype);
     if ((ctp->subtype == NULL) || (*(ctp->subtype) == '\0') ||