Module Name:    src
Committed By:   christos
Date:           Sat Sep 12 18:30:46 UTC 2015

Modified Files:
        src/sys/kern: kern_exec.c

Log Message:
gcc does not detect initialization correctly on all platforms (hpcsh)


To generate a diff of this commit:
cvs rdiff -u -r1.415 -r1.416 src/sys/kern/kern_exec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_exec.c
diff -u src/sys/kern/kern_exec.c:1.415 src/sys/kern/kern_exec.c:1.416
--- src/sys/kern/kern_exec.c:1.415	Sat Sep 12 13:04:57 2015
+++ src/sys/kern/kern_exec.c	Sat Sep 12 14:30:46 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_exec.c,v 1.415 2015/09/12 17:04:57 christos Exp $	*/
+/*	$NetBSD: kern_exec.c,v 1.416 2015/09/12 18:30:46 christos Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.415 2015/09/12 17:04:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.416 2015/09/12 18:30:46 christos Exp $");
 
 #include "opt_exec.h"
 #include "opt_execfmt.h"
@@ -653,7 +653,7 @@ execve_loadvm(struct lwp *l, const char 
 	struct proc		*p;
 	char			*dp;
 	u_int			modgen;
-	size_t			offs;
+	size_t			offs = 0;	// XXX: GCC
 
 	KASSERT(data != NULL);
 

Reply via email to