diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-23 05:45:47 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-23 05:45:47 +0000 |
commit | 2806ebdcca03a34899f13becfd910a471e51ddb9 (patch) | |
tree | 8b52dd6c1b7167d6f135dc6e267bf73fdff9d1d5 /libjava/name-finder.cc | |
parent | 2e833214d2fc62f3ae76ee372e39f4fa046329c0 (diff) | |
download | gcc-2806ebdcca03a34899f13becfd910a471e51ddb9.tar.gz |
2000-11-23 Mark Wielaard <mark@klomp.org>
* name-finder.cc (lookup): Check for a NULL _Jv_argv before
attempting lookup.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37687 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/name-finder.cc')
-rw-r--r-- | libjava/name-finder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/name-finder.cc b/libjava/name-finder.cc index a29f5bd233c..3baa6e3c6bf 100644 --- a/libjava/name-finder.cc +++ b/libjava/name-finder.cc @@ -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; } } |