Module Name: src Committed By: joerg Date: Thu Jul 19 06:07:21 UTC 2012
Modified Files: src/distrib/utils/sysinst: util.c Log Message: Ensure that bakname and tempname have a defined value, even if the first asprintf failed. To generate a diff of this commit: cvs rdiff -u -r1.178 -r1.179 src/distrib/utils/sysinst/util.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/utils/sysinst/util.c diff -u src/distrib/utils/sysinst/util.c:1.178 src/distrib/utils/sysinst/util.c:1.179 --- src/distrib/utils/sysinst/util.c:1.178 Tue May 8 13:51:34 2012 +++ src/distrib/utils/sysinst/util.c Thu Jul 19 06:07:21 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: util.c,v 1.178 2012/05/08 13:51:34 martin Exp $ */ +/* $NetBSD: util.c,v 1.179 2012/07/19 06:07:21 joerg Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -1455,7 +1455,7 @@ del_rc_conf(const char *value) { FILE *fp, *nfp; char buf[4096]; /* Ridiculously high, but should be enough in any way */ - char *rcconf, *tempname, *bakname; + char *rcconf, *tempname = NULL, *bakname = NULL; char *cp; int done = 0; int fd;