diff options
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 2908c007..3ec9e499 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -815,7 +815,7 @@ redir (char *pos, char *status_line) | |||
815 | else if (sscanf (pos, HD5, url) == 1) { | 815 | else if (sscanf (pos, HD5, url) == 1) { |
816 | /* relative url */ | 816 | /* relative url */ |
817 | if ((url[0] != '/')) { | 817 | if ((url[0] != '/')) { |
818 | if (x = strrchr(url, '/')) | 818 | if ((x = strrchr(url, '/'))) |
819 | *x = '\0'; | 819 | *x = '\0'; |
820 | asprintf (&server_url, "%s/%s", server_url, url); | 820 | asprintf (&server_url, "%s/%s", server_url, url); |
821 | } | 821 | } |