Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst Ensure that bakname and tempname have ...
details: https://anonhg.NetBSD.org/src/rev/2648459da1f4
branches: trunk
changeset: 780281:2648459da1f4
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Jul 19 06:07:21 2012 +0000
description:
Ensure that bakname and tempname have a defined value, even if the first
asprintf failed.
diffstat:
distrib/utils/sysinst/util.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 2f6a43e45548 -r 2648459da1f4 distrib/utils/sysinst/util.c
--- a/distrib/utils/sysinst/util.c Thu Jul 19 02:40:57 2012 +0000
+++ b/distrib/utils/sysinst/util.c Thu Jul 19 06:07:21 2012 +0000
@@ -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 @@
{
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;
Home |
Main Index |
Thread Index |
Old Index