utmp-wtmp: check actual value of bool instead of pointer
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user