[asterisk-commits] seanbright: branch 1.4 r297775 - /branches/1.4/main/astobj2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Dec 7 09:23:22 CST 2010
Author: seanbright
Date: Tue Dec 7 09:23:18 2010
New Revision: 297775
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=297775
Log:
Avoid a crash if we don't pass an argument to 'astobj2 test.'
Modified:
branches/1.4/main/astobj2.c
Modified: branches/1.4/main/astobj2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/astobj2.c?view=diff&rev=297775&r1=297774&r2=297775
==============================================================================
--- branches/1.4/main/astobj2.c (original)
+++ branches/1.4/main/astobj2.c Tue Dec 7 09:23:18 2010
@@ -758,6 +758,10 @@
char *obj;
static int prof_id = -1;
+ if (argc != 3) {
+ return RESULT_SHOWUSAGE;
+ }
+
if (prof_id == -1)
prof_id = ast_add_profile("ao2_alloc", 0);
More information about the asterisk-commits
mailing list