Coverity CID 3318: Remove stray semicolon that caused close to be called
unintentionally.
This commit is contained in:
parent
d8d9494bf9
commit
4871d79cb7
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: quit.c,v 1.22 2006/05/01 23:05:24 christos Exp $ */
|
||||
/* $NetBSD: quit.c,v 1.23 2006/05/24 15:53:21 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)quit.c 8.2 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: quit.c,v 1.22 2006/05/01 23:05:24 christos Exp $");
|
||||
__RCSID("$NetBSD: quit.c,v 1.23 2006/05/24 15:53:21 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -261,7 +261,7 @@ nolock:
|
|||
return;
|
||||
}
|
||||
(void)Fclose(obuf);
|
||||
if ((fd = creat(mbox, 0600)) != -1);
|
||||
if ((fd = creat(mbox, 0600)) != -1)
|
||||
(void)close(fd);
|
||||
if ((obuf = Fopen(mbox, "r+")) == NULL) {
|
||||
warn("%s", mbox);
|
||||
|
|
Loading…
Reference in New Issue