Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 May 2002 05:55:36 -0700 (PDT)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 10738 for review
Message-ID:  <200205031255.g43CtaM79615@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10738

Change 10738 by des@des.at.des.thinksec.com on 2002/05/03 05:55:03

	Initialize other to all-zeroes before using it.

Affected files ...

... //depot/projects/openpam/lib/openpam_configure.c#3 edit

Differences ...

==== //depot/projects/openpam/lib/openpam_configure.c#3 (text+ko) ====

@@ -31,7 +31,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/openpam/lib/openpam_configure.c#2 $
+ * $P4: //depot/projects/openpam/lib/openpam_configure.c#3 $
  */
 
 #include <ctype.h>
@@ -257,7 +257,7 @@
 openpam_configure(pam_handle_t *pamh,
 	const char *service)
 {
-	pam_chain_t *other[PAM_NUM_CHAINS];
+	pam_chain_t *other[PAM_NUM_CHAINS] = { 0 };
 	int i, n, r;
 
 	/* try own configuration first */

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205031255.g43CtaM79615>