name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting lookup.

2000-11-23  Mark Wielaard  <mark@klomp.org>

	* name-finder.cc (lookup): Check for a NULL _Jv_argv before
	attempting lookup.

From-SVN: r37687
This commit is contained in:
Mark Wielaard 2000-11-23 05:45:47 +00:00 committed by Bryce McKinlay
parent e11cddecea
commit abb32cf595
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2000-11-23 Mark Wielaard <mark@klomp.org>
* name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
lookup.
2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/Vector.java: Improve exception messages.
@ -58,7 +63,7 @@
* java/text/StringCharacterIterator.java: Reindented.
(setText): New method.
2000-11-17 Mark Wielaar <mark@klomp.org>
2000-11-17 Mark Wielaard <mark@klomp.org>
Merge with Classpath (changes by Bryce McKinlay)
* java/util/jar/*.java: Reformat all to unofficial standard coding

View file

@ -149,7 +149,7 @@ _Jv_name_finder::lookup (void *p)
strncpy (method_name, dl_info.dli_sname, sizeof method_name);
/* Don't trust dladdr() if the address is from the main program. */
if (strcmp (file_name, _Jv_argv[0]) != 0)
if (_Jv_argv == NULL || strcmp (file_name, _Jv_argv[0]) != 0)
return true;
}
}