aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/astobj2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/astobj2.c b/main/astobj2.c
index b88732ea2..12da832d6 100644
--- a/main/astobj2.c
+++ b/main/astobj2.c
@@ -758,6 +758,10 @@ static int handle_astobj2_test(int fd, int argc, char *argv[])
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);