[vlc-commits] dbus: Do not crash on method calls with a null interface

Mirsal Ennaime git at videolan.org
Sun Feb 26 17:45:20 CET 2012


vlc | branch: master | Mirsal Ennaime <mirsal at videolan.org> | Sun Feb 26 17:38:09 2012 +0100| [735e0dac1990eb9ba7f1882ee2d0ad40739e1d68] | committer: Mirsal Ennaime

dbus: Do not crash on method calls with a null interface

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

 modules/control/dbus/dbus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c
index 21945e2..f01273f 100644
--- a/modules/control/dbus/dbus.c
+++ b/modules/control/dbus/dbus.c
@@ -770,7 +770,7 @@ MPRISEntryPoint ( DBusConnection *p_conn, DBusMessage *p_from, void *p_this )
 
     DBusError error;
 
-    if( strcmp( psz_interface, DBUS_INTERFACE_PROPERTIES ) )
+    if( psz_interface && strcmp( psz_interface, DBUS_INTERFACE_PROPERTIES ) )
         psz_target_interface = psz_interface;
 
     else



More information about the vlc-commits mailing list