Skip to content

Commit

Permalink
dialog: fix crash when trying to RPC export a "remote" profile
Browse files Browse the repository at this point in the history
(cherry picked from commit 79695ed)
  • Loading branch information
gaaf committed Nov 10, 2014
1 parent 0b46ce6 commit f39c6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dialog/dialog.c
Expand Up @@ -1660,7 +1660,7 @@ static void internal_rpc_profile_print_dlgs(rpc_t *rpc, void *c, str *profile_na
ph = profile->entries[i].first;
if(ph) {
do {
if (!value || (STR_EQ(*value, ph->value))) {
if ((!value || (STR_EQ(*value, ph->value))) && ph->dlg) {
/* print dialog */
internal_rpc_print_dlg(rpc, c, ph->dlg, 0);
}
Expand Down

0 comments on commit f39c6ae

Please sign in to comment.