[svn-commits] file: trunk r90099 - /trunk/main/cli.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 28 16:32:57 CST 2007


Author: file
Date: Wed Nov 28 16:32:57 2007
New Revision: 90099

URL: http://svn.digium.com/view/asterisk?view=rev&rev=90099
Log:
file says... compile before you commit!

Modified:
    trunk/main/cli.c

Modified: trunk/main/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/main/cli.c?view=diff&rev=90099&r1=90098&r2=90099
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Wed Nov 28 16:32:57 2007
@@ -1787,6 +1787,9 @@
 	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 @@
 	 */
 	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"));




More information about the svn-commits mailing list