Don't insert a bogus <nil> into printed path.

This commit is contained in:
wkj 2005-06-22 04:05:14 +00:00
parent e3ffbf3b84
commit 88bb285e3d

View file

@ -81,6 +81,9 @@ main(int argc, char **argv)
if(s.attrs.have.lowpc){
if(dwarfpctoline(d, s.attrs.lowpc, &cdir, &dir, &file, &line, &mtime, &length) < 0)
print("\tcould not find source: %r\n");
else if(dir == nil)
print("\t%s/%s:%lud mtime=%lud length=%lud\n",
cdir, file, line, mtime, length);
else
print("\t%s/%s/%s:%lud mtime=%lud length=%lud\n",
cdir, dir, file, line, mtime, length);