utmp-wtmp: check actual value of bool instead of pointer

This commit is contained in:
Mike Yuan
2024-01-01 19:13:14 +01:00
committed by Luca Boccassi
parent a31222b232
commit 22a8f00229
+2 -1
View File
@@ -23,7 +23,8 @@ static inline bool utxent_start(void) {
return true;
}
static inline void utxent_cleanup(bool *initialized) {
if (initialized)
assert(initialized);
if (*initialized)
endutxent();
}