summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-07-23 20:19:34 (GMT)
committerGitHub <noreply@github.com>2023-07-23 20:19:34 (GMT)
commitc47f44d897680d09841f8e787964de40063ea34c (patch)
treefb1b30300a6bffb423733e9c3bf250e649054a25 /plugins/check_snmp.c
parent068c124f361d4c615aed79f6fe607f39040b2e31 (diff)
parentaf06d34071608641295eecd46edb0c4dbde13872 (diff)
downloadmonitoring-plugins-c47f44d897680d09841f8e787964de40063ea34c.tar.gz
Merge branch 'master' into compiler_warning_part_5
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 135bbc7..4d8e640 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -858,6 +858,7 @@ process_arguments (int argc, char **argv)
858 break; 858 break;
859 case 'R': /* regex */ 859 case 'R': /* regex */
860 cflags = REG_ICASE; 860 cflags = REG_ICASE;
861 // fall through
861 case 'r': /* regex */ 862 case 'r': /* regex */
862 cflags |= REG_EXTENDED | REG_NOSUB | REG_NEWLINE; 863 cflags |= REG_EXTENDED | REG_NOSUB | REG_NEWLINE;
863 strncpy (regex_expect, optarg, sizeof (regex_expect) - 1); 864 strncpy (regex_expect, optarg, sizeof (regex_expect) - 1);