ref: 956d371b4e72e1d046c6cce9656d8cddf1df3610
parent: 4ece888b582d2cb2b9e74cdebcede99a57b55e07
author: Ori Bernstein <[email protected]>
date: Wed Jul 25 15:54:25 EDT 2012
Don't die when we try to look up a nameless stab.
--- a/parse/use.c
+++ b/parse/use.c
@@ -16,6 +16,13 @@
Node *n;
Stab *s;
+ if (!pkg) {
+ if (!st->name)
+ return st;
+ else
+ return NULL;
+ }
+
n = mkname(-1, pkg);
if (getns(st, n)) {
s = getns(st, n);