Misc (re #1751): Fix crash when executing pattern matched shortcut on cli.

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4825 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Riza Sulistyo 2014-04-24 09:39:41 +00:00
parent bf1d936861
commit 2dbbe57e1e
1 changed files with 2 additions and 5 deletions

View File

@ -1138,9 +1138,6 @@ static pj_status_t get_pattern_match_cmds(pj_cli_cmd_spec *cmd,
pj_status_t status;
PJ_ASSERT_RETURN(cmd && pool && info && cmd_val, PJ_EINVAL);
if (p_cmd)
*p_cmd = cmd;
/* Get matching command */
if (cmd->sub_cmd) {
pj_cli_cmd_spec *child_cmd = cmd->sub_cmd->next;