Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa Avoid warnings about uninitialised usage.
details: https://anonhg.NetBSD.org/src/rev/519d4428c32e
branches: trunk
changeset: 512958:519d4428c32e
user: fvdl <fvdl%NetBSD.org@localhost>
date: Thu Jul 19 18:55:38 2001 +0000
description:
Avoid warnings about uninitialised usage.
diffstat:
sys/lib/libsa/loadfile.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 6948e7476fcf -r 519d4428c32e sys/lib/libsa/loadfile.c
--- a/sys/lib/libsa/loadfile.c Thu Jul 19 18:50:25 2001 +0000
+++ b/sys/lib/libsa/loadfile.c Thu Jul 19 18:55:38 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile.c,v 1.12 2001/07/13 17:43:23 christos Exp $ */
+/* $NetBSD: loadfile.c,v 1.13 2001/07/19 18:55:38 fvdl Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -278,8 +278,8 @@
size_t sz;
int first;
int havesyms;
- paddr_t minp = ~0, maxp = 0, pos;
- paddr_t offset = marks[MARK_START], shpp, elfp;
+ paddr_t minp = ~0, maxp = 0, pos = 0;
+ paddr_t offset = marks[MARK_START], shpp, elfp = NULL;
for (first = 1, i = 0; i < elf->e_phnum; i++) {
Elf_Phdr phdr;
Home |
Main Index |
Thread Index |
Old Index