Skip to content

Commit

Permalink
modules/[call_control|mediaproxy]: proper assigment to NULL pointer
Browse files Browse the repository at this point in the history
CC (clang) [M mediaproxy.so]          mediaproxy.o
mediaproxy.c:1929:27: warning: expression which evaluates to zero treated as a null pointer constant of type 'void *' [-Wnon-literal-null-conversion]
        *_params->param = MPInactive;
                          ^~~~~~~~~~

(cherry picked from commit 700b334)
(cherry picked from commit 3b34811)
(cherry picked from commit a64625b)
  • Loading branch information
mslehto authored and miconda committed Jul 4, 2016
1 parent eb88633 commit dbda69d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/call_control/call_control.c
Expand Up @@ -985,7 +985,7 @@ __dialog_ended(struct dlg_cell *dlg, int type, struct dlg_cb_params *_params)
if( !msg || msg == FAKED_REPLY)
msg = _params->req;
call_control_stop(msg, dlg->callid);
*_params->param = (void*)CCInactive;
*_params->param = NULL;
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/mediaproxy/mediaproxy.c
Expand Up @@ -1926,7 +1926,7 @@ __dialog_ended(struct dlg_cell *dlg, int type, struct dlg_cb_params *_params)
{
if ((int)(long)*_params->param == MPActive) {
end_media_session(dlg->callid, dlg->tag[DLG_CALLER_LEG], dlg->tag[DLG_CALLEE_LEG]);
*_params->param = MPInactive;
*_params->param = NULL;
}
}

Expand Down

0 comments on commit dbda69d

Please sign in to comment.