]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix "core show version" to reflect the new number of arguments for this
authorRussell Bryant <russell@russellbryant.com>
Thu, 9 Nov 2006 06:31:37 +0000 (06:31 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 9 Nov 2006 06:31:37 +0000 (06:31 +0000)
CLI command (issue #8316, kshumard)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47352 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/asterisk.c

index 4ca646a5586830fcd9c1190083836378a5bb5964..b8a93e9ce161803db5fd31d8cb8a3995991f5dbc 100644 (file)
@@ -1372,7 +1372,7 @@ static char version_help[] =
 
 static int handle_version(int fd, int argc, char *argv[])
 {
-       if (argc != 2)
+       if (argc != 3)
                return RESULT_SHOWUSAGE;
        ast_cli(fd, "Asterisk %s built by %s @ %s on a %s running %s on %s\n",
                ASTERISK_VERSION, ast_build_user, ast_build_hostname,