Code

- bindtextdomain for gettext, a few other smale cleanups here and there
[nagiosplug.git] / plugins / check_http.c
index 2908c007bdba5f2f4937b181ccadc9008b317e1f..3ec9e4992211ce2fe3a6b7368f4533dd3b691a77 100644 (file)
@@ -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);
                                }