Module: sip-router Branch: master Commit: cfedffe13336bfdaba6e1dca1fed718858cdaea5 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cfedffe1...
Author: Ovidiu Sas osas@voipembedded.com Committer: Ovidiu Sas osas@voipembedded.com Date: Mon Aug 9 17:58:22 2010 -0400
core: sdp parser - cosmetic fixes (replacing 0 with NULL)
---
parser/sdp/sdp.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/parser/sdp/sdp.c b/parser/sdp/sdp.c index 0025c03..55b3b79 100644 --- a/parser/sdp/sdp.c +++ b/parser/sdp/sdp.c @@ -47,7 +47,7 @@ static inline int new_sdp(struct sip_msg* _m) sdp_info_t* sdp;
sdp = (sdp_info_t*)pkg_malloc(sizeof(sdp_info_t)); - if (sdp == 0) { + if (sdp == NULL) { LM_ERR("No memory left\n"); return -1; } @@ -1005,7 +1005,7 @@ sdp_stream_cell_t * clone_sdp_stream_cell(sdp_stream_cell_t *stream)
clone_stream->payloads_num = stream->payloads_num; if (clone_stream->payloads_num) { - if (0 == init_p_payload_attr(clone_stream, USE_SHM_MEM)) { + if (NULL == init_p_payload_attr(clone_stream, USE_SHM_MEM)) { goto error; } }