summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
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 135bbc7c..4d8e6406 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);