Skip to content

Commit eb8006c

Browse files
committed
fix(UDL): don't compare with address
cache_entry.c: In function '_cache_entry_add_new_attribute': cache_entry.c:522:13: error: the comparison will always evaluate as 'true' for the address of 'name' will never be NULL [-Werror=address] 522 | if (!&attr->name) { | ^ In file included from cache_entry.c:46: cache_entry.h:53:15: note: 'name' declared here 53 | char *name; | ^~~~ cc1: all warnings being treated as errors Bug #56533
1 parent 44bfd2b commit eb8006c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

management/univention-directory-listener/src/cache_entry.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static CacheEntryAttribute *_cache_entry_add_new_attribute(CacheEntry *entry, LD
519519
entry->attributes = tmp;
520520

521521
BER2STR(&ava->la_attr, &attr->name);
522-
if (!&attr->name) {
522+
if (!attr->name) {
523523
univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "%s:%d BER2STR() failed", __FILE__, __LINE__);
524524
goto error;
525525
}

0 commit comments

Comments
 (0)