summaryrefslogtreecommitdiff
path: root/content/fetchcache.c
diff options
context:
space:
mode:
authorFrançois Revel <mmu_man@netsurf-browser.org>2008-07-29 09:05:36 +0000
committerFrançois Revel <mmu_man@netsurf-browser.org>2008-07-29 09:05:36 +0000
commitf28f4cc76085b4c5cf589b3ca771fa7379d90eac (patch)
tree53ba572fbdb0e4bda5ace3901e15b55ffb8b4337 /content/fetchcache.c
parent00687fcddac4f145fbe143426dbb923fca532a8b (diff)
downloadnetsurf-f28f4cc76085b4c5cf589b3ca771fa7379d90eac.tar.gz
netsurf-f28f4cc76085b4c5cf589b3ca771fa7379d90eac.tar.bz2
First round of C89 fixes. Those should be obvious, hope I didn't introduce any side effect.
svn path=/trunk/netsurf/; revision=4788
Diffstat (limited to 'content/fetchcache.c')
-rw-r--r--content/fetchcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/fetchcache.c b/content/fetchcache.c
index fa6938a32..e20785e2b 100644
--- a/content/fetchcache.c
+++ b/content/fetchcache.c
@@ -574,6 +574,7 @@ char *fetchcache_parse_type(const char *s, char **params[])
r = regexec(&re_content_type, s, 2 + MAX_ATTRS * 3, pmatch, 0);
if (r) {
+ char *semi;
LOG(("failed to parse content-type '%s'", s));
/* The mime type must be first, so only copy up to the
* first semicolon in the string. This allows us to have
@@ -581,7 +582,7 @@ char *fetchcache_parse_type(const char *s, char **params[])
* Content-Type headers. Obviously, any truly broken
* Content-Type headers will be unaffected by this heuristic
*/
- char *semi = strchr(s, ';');
+ semi = strchr(s, ';');
if (semi)
type = strndup(s, semi - s);
else