From 6a9b2d36e16f6585d2f8ff50062789df7f746aa6 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Thu, 20 Nov 2014 16:20:20 +0100 Subject: [PATCH] Fix C89 issue in http.c found by MSVC 16 --- src/ChangeLog | 4 ++++ src/http.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6208932e..6b693c4b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2014-11-20 Gisle Vanem + + * http.c (parse_content_disposition): Fix C89 issue found by MSVC 16 + 2014-11-19 Darshit Shah * progress.c (create_image): Do not scroll filename if amount of scrolling diff --git a/src/http.c b/src/http.c index 8d9fef35..1aaeeeee 100644 --- a/src/http.c +++ b/src/http.c @@ -1191,8 +1191,9 @@ static bool parse_content_disposition (const char *hdr, char **filename) { param_token name, value; - *filename = NULL; bool is_url_encoded = false; + + *filename = NULL; for ( ; extract_param (&hdr, &name, &value, ';', &is_url_encoded); is_url_encoded = false) {