changeset 13269:52325acbd90e

652 libc uninitialized variable Reviewed by: garrett@nexenta.com Approved by: garrett@nexenta.com
author Alexander Stetsenko <ams@nexenta.com>
date Thu, 20 Jan 2011 22:09:09 +0300
parents b749961aba64
children 33c640a24eb2
files usr/src/lib/libc/port/gen/localtime.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/libc/port/gen/localtime.c	Wed Jan 19 08:12:06 2011 -0800
+++ b/usr/src/lib/libc/port/gen/localtime.c	Thu Jan 20 22:09:09 2011 +0300
@@ -20,7 +20,7 @@
  */
 
 /*
- * Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
+ * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  */
 
 /*
@@ -685,7 +685,7 @@
 	int	temp;
 	int	mketimerrno;
 	int	overflow;
-	void	*unused;
+	void	*unused = NULL;
 
 	mketimerrno = errno;