diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-28 22:32:57 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-28 22:32:57 +0000 |
commit | d3894478e715ba561b5fa9a97c04f8c17894058f (patch) | |
tree | 69d547fc1ec94fc77befefe158bb0b05cafeee14 /main/cli.c | |
parent | d48decf1ec47b155e728e3df2301b52d9979604c (diff) |
file says... compile before you commit!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90099 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/main/cli.c b/main/cli.c index ca69e58fc..52b8d51b4 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1787,6 +1787,9 @@ int ast_cli_command(int fd, const char *s) struct ast_cli_entry *e; int x; char *dup = parse_args(s, &x, args + 1, AST_MAX_ARGS, NULL); + char *retval = NULL; + struct ast_cli_args a = { + .fd = fd, .argc = x, .argv = args+1 }; if (dup == NULL) return -1; @@ -1809,9 +1812,7 @@ int ast_cli_command(int fd, const char *s) */ args[0] = (char *)e; - struct ast_cli_args a = { - .fd = fd, .argc = x, .argv = args+1 }; - char *retval = e->handler(e, CLI_HANDLER, &a); + retval = e->handler(e, CLI_HANDLER, &a); if (retval == CLI_SHOWUSAGE) { ast_cli(fd, "%s", S_OR(e->usage, "Invalid usage, but no usage information available.\n")); |