From 0a0b9262b47f9cfede3812a97224db4bb1b41b29 Mon Sep 17 00:00:00 2001 From: William King Date: Sat, 20 Dec 2014 14:46:21 -0800 Subject: [PATCH] Build fix for gcc 4.9 fixing a variable set but not used error --- src/mod/applications/mod_commands/mod_commands.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 64f087969f..75d8625af2 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -2965,6 +2965,10 @@ SWITCH_STANDARD_API(uuid_drop_dtmf) dup = strdup(cmd); argc = switch_split(dup, ' ', argv); + if ( argc < 4 ) { + stream->write_function(stream, "-USAGE: %s\n", UUID_DROP_DTMF_SYNTAX); + goto end; + } if (argv[0]) { uuid = argv[0];