summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-12-30 19:39:31 (GMT)
committerGitHub <noreply@github.com>2023-12-30 19:39:31 (GMT)
commit7dfddfbc88b1d78b9824a68feca19df87a3eb504 (patch)
tree6a79e50b310b3fa6f1a74797a0c6b9516046e552 /plugins/check_http.c
parentbad156676894a2755c8b76519a11cdd2037e5cd6 (diff)
parent8fe3fc78299dbd5fc3612853a502a99fbaf35451 (diff)
downloadmonitoring-plugins-master.tar.gz
Merge pull request #1980 from RincewindsHat/compiler_warning_part_7HEADmaster
Compiler warning part 7
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 110f118..425ce86 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -472,9 +472,8 @@ bool process_arguments (int argc, char **argv)
472 http_method = strdup (optarg); 472 http_method = strdup (optarg);
473 char *tmp; 473 char *tmp;
474 if ((tmp = strstr(http_method, ":")) != NULL) { 474 if ((tmp = strstr(http_method, ":")) != NULL) {
475 tmp[0] = '\0'; 475 tmp[0] = '\0'; // set the ":" in the middle to 0
476 http_method = http_method; 476 http_method_proxy = ++tmp; // this points to the second part
477 http_method_proxy = ++tmp;
478 } 477 }
479 break; 478 break;
480 case 'd': /* string or substring */ 479 case 'd': /* string or substring */