fix assertion
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@883 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
0b75f2de27
commit
e909bac500
|
@ -212,7 +212,7 @@ OZ_DECLARE_DATA zap_logger_t zap_log = null_logger;
|
||||||
|
|
||||||
OZ_DECLARE(void) zap_global_set_crash_policy(zap_crash_policy_t policy)
|
OZ_DECLARE(void) zap_global_set_crash_policy(zap_crash_policy_t policy)
|
||||||
{
|
{
|
||||||
g_zap_crash_policy = policy;
|
g_zap_crash_policy |= policy;
|
||||||
}
|
}
|
||||||
|
|
||||||
OZ_DECLARE(zap_status_t) zap_global_set_memory_handler(zap_memory_handler_t *handler)
|
OZ_DECLARE(zap_status_t) zap_global_set_memory_handler(zap_memory_handler_t *handler)
|
||||||
|
|
|
@ -239,7 +239,7 @@ OZ_DECLARE(zap_status_t) zap_condition_create(zap_condition_t **incondition, zap
|
||||||
{
|
{
|
||||||
zap_condition_t *condition = NULL;
|
zap_condition_t *condition = NULL;
|
||||||
|
|
||||||
zap_assert(condition != NULL, ZAP_FAIL, "Condition double pointer is null!\n");
|
zap_assert(incondition != NULL, ZAP_FAIL, "Condition double pointer is null!\n");
|
||||||
zap_assert(mutex != NULL, ZAP_FAIL, "Mutex for condition must not be null!\n");
|
zap_assert(mutex != NULL, ZAP_FAIL, "Mutex for condition must not be null!\n");
|
||||||
|
|
||||||
condition = zap_calloc(1, sizeof(*condition));
|
condition = zap_calloc(1, sizeof(*condition));
|
||||||
|
|
Loading…
Reference in New Issue