]> diplodocus.org Git - nmh/blobdiff - uip/mhparse.c
check curl_ctx->res_len > 0 not res_body != NULL
[nmh] / uip / mhparse.c
index 6f8ebaf1e6d102ed37df87fadcba7404a6e027fc..1193d5648cc75216b1e42a5be0a4b5755922dde9 100644 (file)
@@ -4334,7 +4334,7 @@ char *get_param_value(PM pm, char replace)
            }
            if (utf8) {
                for (++p, --inbytes;
-                    inbytes > 0 && (((unsigned char) *q) & 0xc0) == 0x80;
+                    inbytes > 0 && (((unsigned char) *p) & 0xc0) == 0x80;
                     ++p, --inbytes)
                    continue;
            } else {