diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-12-14 23:23:17 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-12-14 23:23:17 +0000 |
commit | 2d3969e54711fb2932edc27b63398a1018022d06 (patch) | |
tree | 79f6aa1b7146e272bdc0e7ca97fcf9109049c2fa /src | |
parent | ef8c01e43baf18ab7a829bc685b38196bf0b12e1 (diff) | |
download | xine-lib-2d3969e54711fb2932edc27b63398a1018022d06.tar.gz xine-lib-2d3969e54711fb2932edc27b63398a1018022d06.tar.bz2 |
avoid sefault (shot II)
CVS patchset: 5915
CVS date: 2003/12/14 23:23:17
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/load_plugins.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index 9ba321d33..212a9d3df 100644 --- a/src/xine-engine/load_plugins.c +++ b/src/xine-engine/load_plugins.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: load_plugins.c,v 1.169 2003/12/14 23:21:19 f1rmb Exp $ + * $Id: load_plugins.c,v 1.170 2003/12/14 23:23:17 f1rmb Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -537,11 +537,10 @@ static void collect_plugins(xine_t *this, char *path){ } } else { - char *dl_error_msg = dlerror(); + char *error = dlerror(); xine_log (this, XINE_LOG_PLUGIN, - _("load_plugins: can't get plugin info from %s:\n%s\n"), - str, dl_error_msg); + _("load_plugins: can't get plugin info from %s:\n%s\n"), str, error); } if( lib ) dlclose(lib); @@ -577,10 +576,10 @@ static void *_load_plugin_class(xine_t *this, void *lib; if(!(lib = dlopen (filename, RTLD_LAZY | RTLD_GLOBAL))) { + char *error = dlerror(); xine_log (this, XINE_LOG_PLUGIN, - _("load_plugins: cannot (stage 2) open plugin lib %s:\n%s\n"), - filename, dlerror()); + _("load_plugins: cannot (stage 2) open plugin lib %s:\n%s\n"), filename, error); } else { |