Misc (re #1320): fixed wrong check order in pjsua app vid_handle_menu(), input string "vid " crashed the app.

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3735 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Nanang Izzuddin 2011-08-29 07:58:52 +00:00
parent 67f2c544cf
commit 775918f35d
1 changed files with 1 additions and 1 deletions

View File

@ -3773,7 +3773,7 @@ static void vid_handle_menu(char *menuin)
argv[argc] = strtok(NULL, " \t\r\n");
}
if (strcmp(argv[1], "help")==0 || argc == 1) {
if (argc == 1 || strcmp(argv[1], "help")==0) {
vid_show_help();
} else if (strcmp(argv[1], "call")==0) {
pjsua_call_vid_strm_op_param param;