diff options
Diffstat (limited to 'dselect/method.cc')
-rw-r--r-- | dselect/method.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dselect/method.cc b/dselect/method.cc index ef5c4c344..74ac9842c 100644 --- a/dselect/method.cc +++ b/dselect/method.cc @@ -72,7 +72,7 @@ static void cu_unlockmethod(int, void**) { struct flock fl; assert(methodlockfile); - assert(methlockfd); + assert(methlockfd >= 0); fl.l_type=F_UNLCK; fl.l_whence= SEEK_SET; fl.l_start=fl.l_len=0; if (fcntl(methlockfd,F_SETLK,&fl) == -1) sthfailed(_("cannot unlock access method area")); |