Explorar o código

modules/sca: fix SCA_CALL_INFO_EMPTY macro

- test should be a logical OR, not AND.
Andrew Mortensen %!s(int64=12) %!d(string=hai) anos
pai
achega
3339e7a5bd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/sca/sca_call_info.h

+ 1 - 1
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) && ((ci1)->index == SCA_CALL_INFO_APPEARANCE_INDEX_ANY && \
+	(!(ci1) || ((ci1)->index == SCA_CALL_INFO_APPEARANCE_INDEX_ANY && \
 			(ci1)->state == SCA_APPEARANCE_STATE_UNKNOWN))
 
 #define SCA_CALL_INFO_IS_SHARED_CALLER( ci1 ) \