Module: sip-router Branch: master Commit: 04b457735f0bafa6ff214cb2d69afbe721d89bf1 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=04b45773...
Author: Andrew Mortensen admorten@isc.upenn.edu Committer: Andrew Mortensen admorten@isc.upenn.edu Date: Thu Nov 7 14:52:29 2013 -0500
modules/sca: restore correct check for NULL in SCA_CALL_INFO_EMPTY.
- should also suppress -Waddress error without relying on gcc _Pragma.
---
modules/sca/sca_call_info.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/sca/sca_call_info.h b/modules/sca/sca_call_info.h index 3e9b050..6a9f1ea 100644 --- a/modules/sca/sca_call_info.h +++ b/modules/sca/sca_call_info.h @@ -48,7 +48,7 @@ struct _sca_call_info { typedef struct _sca_call_info sca_call_info;
#define SCA_CALL_INFO_EMPTY( ci1 ) \ - ((ci1) != NULL || \ + ((void*)(ci1) == NULL || \ ((ci1)->index == SCA_CALL_INFO_APPEARANCE_INDEX_ANY && \ (ci1)->state == SCA_APPEARANCE_STATE_UNKNOWN))