diff --git a/plugins/check_http.c b/plugins/check_http.c
index 2908c007bdba5f2f4937b181ccadc9008b317e1f..3ec9e4992211ce2fe3a6b7368f4533dd3b691a77 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
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);
}