diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2005-02-13 21:21:06 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2005-02-13 21:21:06 +0000 |
commit | 723b57cb57fdcdf8d1673256826cfbef14aa9488 (patch) | |
tree | b81057fb8fd078d1e0eb40e36cd569e420769fd1 /src | |
parent | 2c2555064a022ef599cf24efae83c3a7117b9893 (diff) | |
download | xine-lib-723b57cb57fdcdf8d1673256826cfbef14aa9488.tar.gz xine-lib-723b57cb57fdcdf8d1673256826cfbef14aa9488.tar.bz2 |
Don't dereference node->file if it's NULL.
CVS patchset: 7410
CVS date: 2005/02/13 21:21:06
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/load_plugins.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index 0c4f8b6dd..28d511179 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.199 2005/02/13 16:12:35 tmattern Exp $ + * $Id: load_plugins.c,v 1.200 2005/02/13 21:21:06 tmattern Exp $ * * * Load input/demux/audio_out/video_out/codec plugins @@ -722,13 +722,12 @@ static void collect_plugins(xine_t *this, char *path){ static int _load_plugin_class(xine_t *this, plugin_node_t *node, void *data) { - - char *filename = node->file->filename; - plugin_info_t *target = node->info; - void *lib; - plugin_info_t *info; - if (node->file) { + char *filename = node->file->filename; + plugin_info_t *target = node->info; + void *lib; + plugin_info_t *info; + /* load the dynamic library if needed */ if (!node->file->lib_handle) { lprintf("dlopen %s\n", filename); |