diff options
author | rsc <devnull@localhost> | 2005-01-17 15:37:27 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-17 15:37:27 +0000 |
commit | 87ccb5f9cfd230cc1be7ba81ba6d2b6ba7dc7254 (patch) | |
tree | 6a0e2ed9ae69ed4f4211a6dfe6b30a5af1bb18f1 /src/cmd/acid | |
parent | 865d0e5e0056d346a59740cf8e50f871d6c69ad7 (diff) | |
download | plan9port-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.c | 2 |
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; |