Commit f76e7b0a authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge r4261: Unbreak the symbol-hack



git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@4324 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 487b7c24
......@@ -445,7 +445,7 @@ Symbol_Lookup(struct vsb *vsb, void *ptr)
VTAILQ_FOREACH(s, &symbols, list) {
if (s->a > pp)
continue;
if (s0 == NULL || s->a < s0->a)
if (s0 == NULL || s->a > s0->a)
s0 = s;
}
if (s0 == NULL)
......@@ -466,7 +466,7 @@ Symbol_hack(const char *a0)
asprintf(&p, "nm -an %s", a0);
if (p == NULL)
return;
fi = popen(buf, "r");
fi = popen(p, "r");
free(p);
if (fi == NULL)
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment