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:
parent
67f2c544cf
commit
775918f35d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue