PERFORCE change 178918 for review

Garrett Cooper gcooper at FreeBSD.org
Fri May 28 11:14:06 UTC 2010


http://p4web.freebsd.org/@@178918?ac=10

Change 178918 by gcooper at gcooper-bayonetta on 2010/05/28 11:13:29

	Initialize variables.

Affected files ...

.. //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/usr.sbin/pkg_install/lib/cleanup.c#2 edit

Differences ...

==== //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/usr.sbin/pkg_install/lib/cleanup.c#2 (text+ko) ====

@@ -61,10 +61,12 @@
 
 	sig_t signal_handler;
 	int *sigmask_p;
-	int rc;
+	int rc = 0;
 	size_t i;
 	size_t sigmask_len;
 
+	errno = 0;
+
 	if (cleanup == NULL) {
 		rc = -1;
 		errno = EINVAL;


More information about the p4-projects mailing list