plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 87ccb5f9cfd230cc1be7ba81ba6d2b6ba7dc7254
parent 865d0e5e0056d346a59740cf8e50f871d6c69ad7
Author: rsc <devnull@localhost>
Date:   Mon, 17 Jan 2005 15:37:27 +0000

nil deref

Diffstat:
Msrc/cmd/acid/list.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/acid/list.c b/src/cmd/acid/list.c @@ -232,7 +232,7 @@ listlocals(Map *map, Regs *regs, Symbol *fn, int class) for(i = 0; indexlsym(fn, i, &s)>=0; i++) { if(s.class != class) continue; - if(class == CAUTO && s.name[0] == '.') + if(class == CAUTO && (s.name==0 || s.name[0] == '.')) continue; if(lget4(map, regs, s.loc, &val) < 0) continue;