diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-07-11 23:08:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 23:08:31 +0200 |
commit | e4b6e83264e7f948a868d89229c28bcccd98699f (patch) | |
tree | d5046000910b42d18c6fe42634f9cec9e96d9c0e /plugins/check_snmp.c | |
parent | 9ef6660cab8eb2b017323b9e000cb3560f07886b (diff) | |
parent | 65aa35d1afdea2570309efc7a08050504a53f091 (diff) | |
download | monitoring-plugins-e4b6e83.tar.gz |
Merge branch 'master' into compiler_warning_part_6
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r-- | plugins/check_snmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index c425df3c..04dc6c6f 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -855,6 +855,7 @@ process_arguments (int argc, char **argv) | |||
855 | break; | 855 | break; |
856 | case 'R': /* regex */ | 856 | case 'R': /* regex */ |
857 | cflags = REG_ICASE; | 857 | cflags = REG_ICASE; |
858 | // fall through | ||
858 | case 'r': /* regex */ | 859 | case 'r': /* regex */ |
859 | cflags |= REG_EXTENDED | REG_NOSUB | REG_NEWLINE; | 860 | cflags |= REG_EXTENDED | REG_NOSUB | REG_NEWLINE; |
860 | strncpy (regex_expect, optarg, sizeof (regex_expect) - 1); | 861 | strncpy (regex_expect, optarg, sizeof (regex_expect) - 1); |