flock: possible pointer dereferences [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
31bfda07a4
commit
3c7fbc82da
|
@ -255,6 +255,7 @@ int main(int argc, char *argv[])
|
|||
*/
|
||||
if (!(open_flags & O_RDWR) &&
|
||||
type != LOCK_SH &&
|
||||
filename &&
|
||||
access(filename, R_OK | W_OK) == 0) {
|
||||
|
||||
close(fd);
|
||||
|
|
Loading…
Reference in New Issue