LOG: change assert into an early return

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
Angus Salkeld 2011-11-08 10:42:26 +11:00
parent 0171399274
commit b519f4f37d

View File

@ -246,7 +246,9 @@ void qb_log_from_external_source_va(const char *function,
cs = qb_log_dcs_get(&new_dcs, function, filename,
format, priority, lineno, tags);
assert(cs != NULL);
if (cs == NULL) {
return;
}
if (new_dcs) {
pthread_rwlock_rdlock(&_listlock);