Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern initialize offset to 0 (Maxime Villard)
details: https://anonhg.NetBSD.org/src/rev/4f83d61a06c5
branches: trunk
changeset: 326736:4f83d61a06c5
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 15 17:39:03 2014 +0000
description:
initialize offset to 0 (Maxime Villard)
diffstat:
sys/kern/exec_elf.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 20eeeba8a266 -r 4f83d61a06c5 sys/kern/exec_elf.c
--- a/sys/kern/exec_elf.c Sat Feb 15 16:17:01 2014 +0000
+++ b/sys/kern/exec_elf.c Sat Feb 15 17:39:03 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf.c,v 1.56 2014/02/15 16:17:01 maxv Exp $ */
+/* $NetBSD: exec_elf.c,v 1.57 2014/02/15 17:39:03 christos Exp $ */
/*-
* Copyright (c) 1994, 2000, 2005 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.56 2014/02/15 16:17:01 maxv Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.57 2014/02/15 17:39:03 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_pax.h"
@@ -818,7 +818,7 @@
*/
if (interp) {
int j = epp->ep_vmcmds.evs_used;
- u_long interp_offset;
+ u_long interp_offset = 0;
if ((error = elf_load_file(l, epp, interp,
&epp->ep_vmcmds, &interp_offset, ap, &pos)) != 0) {
Home |
Main Index |
Thread Index |
Old Index