artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
834c4ef
)
init var to fix missing symtab section path
author
jsg
<jsg@openbsd.org>
Mon, 1 Apr 2024 22:49:04 +0000
(22:49 +0000)
committer
jsg
<jsg@openbsd.org>
Mon, 1 Apr 2024 22:49:04 +0000
(22:49 +0000)
found by smatch, ok mpi@
usr.sbin/btrace/ksyms.c
patch
|
blob
|
history
diff --git
a/usr.sbin/btrace/ksyms.c
b/usr.sbin/btrace/ksyms.c
index
960b0d9
..
422936a
100644
(file)
--- a/
usr.sbin/btrace/ksyms.c
+++ b/
usr.sbin/btrace/ksyms.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ksyms.c,v 1.
9 2024/03/16 17:42:37 cheloha
Exp $ */
+/* $OpenBSD: ksyms.c,v 1.
10 2024/04/01 22:49:04 jsg
Exp $ */
/*
* Copyright (c) 2016 Martin Pieuchot <mpi@openbsd.org>
@@
-51,7
+51,7
@@
kelf_open(const char *path)
char *name;
Elf *elf;
Elf_Data *data = NULL;
- Elf_Scn *scn = NULL, *symtab;
+ Elf_Scn *scn = NULL, *symtab
= NULL
;
GElf_Sym sym;
GElf_Shdr shdr;
size_t i, shstrndx, strtabndx = SIZE_MAX, symtab_size;