aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acid
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-17 15:37:27 +0000
committerrsc <devnull@localhost>2005-01-17 15:37:27 +0000
commit87ccb5f9cfd230cc1be7ba81ba6d2b6ba7dc7254 (patch)
tree6a0e2ed9ae69ed4f4211a6dfe6b30a5af1bb18f1 /src/cmd/acid
parent865d0e5e0056d346a59740cf8e50f871d6c69ad7 (diff)
downloadplan9port-87ccb5f9cfd230cc1be7ba81ba6d2b6ba7dc7254.tar.gz
plan9port-87ccb5f9cfd230cc1be7ba81ba6d2b6ba7dc7254.tar.bz2
plan9port-87ccb5f9cfd230cc1be7ba81ba6d2b6ba7dc7254.zip
nil deref
Diffstat (limited to 'src/cmd/acid')
-rw-r--r--src/cmd/acid/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/acid/list.c b/src/cmd/acid/list.c
index ad86966b..b75d0d70 100644
--- 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;