diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/input/input_http.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c index 7a23530fa..9cfc34ecf 100644 --- a/src/input/input_http.c +++ b/src/input/input_http.c @@ -231,8 +231,10 @@ static int http_plugin_parse_url (char *urlbuf, char **user, char **password, if (filename != NULL) *filename = slash + 1; - } else - *filename = urlbuf + strlen(urlbuf); + } else { + if (filename != NULL) + *filename = urlbuf + strlen(urlbuf); + } if (portcolon != NULL) { |