]> git.pld-linux.org Git - packages/elinks.git/blame - elinks-content-type.patch
- updated to 0.10.1
[packages/elinks.git] / elinks-content-type.patch
CommitLineData
8b4c33b5
KK
1--- elinks-0.10.0/src/mime/mime.c.orig 2004-10-14 20:50:37.000000000 +0200
2+++ elinks-0.10.0/src/mime/mime.c 2004-12-31 13:26:02.000000000 +0100
3@@ -177,6 +177,8 @@
31c66043 4
8b4c33b5
KK
5 ctype = parse_header(cached->head, "Content-Type", NULL);
6 if (ctype) {
7+ /* treat empty Content-Type as not present (to avoid crash) */
8+ if (*ctype != '\0') {
9 unsigned char *end = strchr(ctype, ';');
10 int ctypelen;
31c66043 11
8b4c33b5
KK
12@@ -191,7 +193,7 @@
13 if (*ctype) {
31c66043
JB
14 return ctype;
15 }
8b4c33b5
KK
16-
17+ }
18 mem_free(ctype);
31c66043
JB
19 }
20
This page took 0.096563 seconds and 4 git commands to generate.