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) else if (sscanf (pos, HD5, url) == 1) { /* relative url */ if ((url[0] != '/')) { - if (x = strrchr(url, '/')) + if ((x = strrchr(url, '/'))) *x = '\0'; asprintf (&server_url, "%s/%s", server_url, url); } |