]> git.pld-linux.org Git - packages/elinks.git/blob - elinks-content-type.patch
- updated to 0.10.1
[packages/elinks.git] / elinks-content-type.patch
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 @@
4  
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;
11  
12 @@ -191,7 +193,7 @@
13                 if (*ctype) {
14                         return ctype;
15                 }
16 -
17 +       }
18                 mem_free(ctype);
19         }
20  
This page took 0.080304 seconds and 3 git commands to generate.