Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst Remove duplicate fclose(), pointed out by c...



details:   https://anonhg.NetBSD.org/src/rev/7a62ceaea607
branches:  trunk
changeset: 331676:7a62ceaea607
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Aug 19 06:47:15 2014 +0000

description:
Remove duplicate fclose(), pointed out by coverity scan.

diffstat:

 usr.sbin/sysinst/net.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (18 lines):

diff -r d675ec90ac47 -r 7a62ceaea607 usr.sbin/sysinst/net.c
--- a/usr.sbin/sysinst/net.c    Mon Aug 18 22:33:25 2014 +0000
+++ b/usr.sbin/sysinst/net.c    Tue Aug 19 06:47:15 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: net.c,v 1.2 2014/08/03 16:09:38 martin Exp $   */
+/*     $NetBSD: net.c,v 1.3 2014/08/19 06:47:15 martin Exp $   */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -1176,8 +1176,6 @@
                        write_etc_hosts(hosts);
                        (void)fclose(hosts);
                        scripting_fprintf(NULL, "EOF\n");
-
-                       fclose(hosts);
                }
 
                if (del_rc_conf("defaultroute") == 0)



Home | Main Index | Thread Index | Old Index