Skip to content
Commit 143cea84 authored by Florian Weimer's avatar Florian Weimer
Browse files

login: Remove double-assignment of fl.l_whence in try_file_lock



Since l_whence is the second member of struct flock, it is written
twice.  The double-assignment is technically undefined behavior due to
the lack of a sequence point.

Reviewed-by: default avatarCarlos O'Donell <carlos@redhat.com>
Change-Id: I2baf9e70690e723c61051b25ccbd510aec15976c
(cherry picked from commit b0a83ae7)
parent f0cd1cfb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment