[vlc-commits] commit: dlopen path can be NULL ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Mon Jun 7 22:37:28 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun  7 23:37:16 2010 +0300| [ff5d0145ed2dcee5226ece644cba9c202085b98f] | committer: Rémi Denis-Courmont 

dlopen path can be NULL

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=ff5d0145ed2dcee5226ece644cba9c202085b98f
---

 bin/override.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bin/override.c b/bin/override.c
index 54ca687..5e72918 100644
--- a/bin/override.c
+++ b/bin/override.c
@@ -297,7 +297,7 @@ int (*XSetIOErrorHandler (int (*handler) (Display *))) (Display *)
 
 void *dlopen (const char *path, int flag)
 {
-    if (strstr (path, "/gui_platform/libkde.so"))
+    if (path && strstr (path, "/gui_platform/libkde.so"))
         return NULL; /* Oh no, not that one! */
     return CALL(dlopen, path, flag);
 }



More information about the vlc-commits mailing list