Module Name:    src
Committed By:   martin
Date:           Tue Aug 19 06:47:15 UTC 2014

Modified Files:
        src/usr.sbin/sysinst: net.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/net.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/net.c
diff -u src/usr.sbin/sysinst/net.c:1.2 src/usr.sbin/sysinst/net.c:1.3
--- src/usr.sbin/sysinst/net.c:1.2	Sun Aug  3 16:09:38 2014
+++ src/usr.sbin/sysinst/net.c	Tue Aug 19 06:47:15 2014
@@ -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 @@ mnt_net_config(void)
 			write_etc_hosts(hosts);
 			(void)fclose(hosts);
 			scripting_fprintf(NULL, "EOF\n");
-
-			fclose(hosts);
 		}
 
 		if (del_rc_conf("defaultroute") == 0)

Reply via email to