From: Anthony Minessale Date: Tue, 13 Nov 2007 22:03:05 +0000 (+0000) Subject: fix some stuff and add set_user func X-Git-Tag: v1.0-beta2~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b23c376d828d69e6d2ac551987c96dff664f2fe2;p=thirdparty%2Ffreeswitch.git fix some stuff and add set_user func git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6246 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_limit/mod_limit.c b/src/mod/applications/mod_limit/mod_limit.c index c65a6dd2a2..78f8886294 100644 --- a/src/mod/applications/mod_limit/mod_limit.c +++ b/src/mod/applications/mod_limit/mod_limit.c @@ -408,7 +408,7 @@ SWITCH_STANDARD_APP(db_function) mydata = switch_core_session_strdup(session, data); argc = switch_separate_string(mydata, '/', argv, (sizeof(argv) / sizeof(argv[0]))); } - printf("WTF [%s] %d\n", argv[0], argc); + if (argc < 4) { goto error; }