Skip to content

Commit

Permalink
Check for NULL pointer so we don't crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Nov 25, 2008
1 parent 28b0b5a commit 4df74f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libltdl/ltdl.c
Expand Up @@ -426,6 +426,9 @@ tryall_dlopen (lt_dlhandle *phandle, const char *filename,
(loader_vtable && loader_vtable->name) ? loader_vtable->name : "(null)",
filename ? filename : "(null)");
#endif

if (!loader_vtable) continue;

handle->module = (*loader_vtable->module_open) (loader_vtable->dlloader_data,
filename, advise);
#ifdef LT_DEBUG_LOADERS
Expand Down

0 comments on commit 4df74f9

Please sign in to comment.