Commit abb32cf5 by Mark Wielaard Committed by Bryce McKinlay

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
parent e11cddec
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> 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/Vector.java: Improve exception messages. * java/util/Vector.java: Improve exception messages.
...@@ -58,7 +63,7 @@ ...@@ -58,7 +63,7 @@
* java/text/StringCharacterIterator.java: Reindented. * java/text/StringCharacterIterator.java: Reindented.
(setText): New method. (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) Merge with Classpath (changes by Bryce McKinlay)
* java/util/jar/*.java: Reformat all to unofficial standard coding * java/util/jar/*.java: Reformat all to unofficial standard coding
......
...@@ -149,7 +149,7 @@ _Jv_name_finder::lookup (void *p) ...@@ -149,7 +149,7 @@ _Jv_name_finder::lookup (void *p)
strncpy (method_name, dl_info.dli_sname, sizeof method_name); strncpy (method_name, dl_info.dli_sname, sizeof method_name);
/* Don't trust dladdr() if the address is from the main program. */ /* 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; return true;
} }
} }
......
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