Mercurial > hg-old > index.cgi
changeset 130:8349048d67b3
Fixed crash when entry symbol is not exported
author | lost |
---|---|
date | Sat, 24 Jan 2009 02:54:03 +0000 |
parents | b9a3a3867eef |
children | 5276565799bd |
files | lwlink/trunk/src/link.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lwlink/trunk/src/link.c Sat Jan 24 02:34:25 2009 +0000 +++ b/lwlink/trunk/src/link.c Sat Jan 24 02:54:03 2009 +0000 @@ -202,7 +202,14 @@ } } } - fprintf(stderr, "External symbol %s not found in %s:%s\n", sym, sect -> file -> filename, sect -> name); + if (sect) + { + fprintf(stderr, "External symbol %s not found in %s:%s\n", sym, sect -> file -> filename, sect -> name); + } + else + { + fprintf(stderr, "External symbol %s not found\n", sym); + } exit(1); } fprintf(stderr, "Shouldn't ever get here!!!\n");