Coverity CID 3318: Remove stray semicolon that caused close to be called

unintentionally.
This commit is contained in:
christos 2006-05-24 15:53:21 +00:00
parent d8d9494bf9
commit 4871d79cb7
1 changed files with 3 additions and 3 deletions

View File

@ -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 * Copyright (c) 1980, 1993
@ -34,7 +34,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)quit.c 8.2 (Berkeley) 4/28/95"; static char sccsid[] = "@(#)quit.c 8.2 (Berkeley) 4/28/95";
#else #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
#endif /* not lint */ #endif /* not lint */
@ -261,7 +261,7 @@ nolock:
return; return;
} }
(void)Fclose(obuf); (void)Fclose(obuf);
if ((fd = creat(mbox, 0600)) != -1); if ((fd = creat(mbox, 0600)) != -1)
(void)close(fd); (void)close(fd);
if ((obuf = Fopen(mbox, "r+")) == NULL) { if ((obuf = Fopen(mbox, "r+")) == NULL) {
warn("%s", mbox); warn("%s", mbox);