From 72ce31c59fa5e9c89355bad2c9eeb9488d829475 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Fri, 27 Aug 2010 17:03:16 +0200 Subject: [PATCH] Fixed case when no scope attribute is used. --- dbus/dbus-sysdeps-win.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 97256c6..821bc7b 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -2572,7 +2572,11 @@ _dbus_get_shm_address(DBusString *out,const char *scope) _dbus_string_init(out); _dbus_string_append(out,cDBusDaemonAddressInfo); - if (strcmp(scope,"install-path") == 0) + if (!scope) + { + return TRUE; + } + else if (strcmp(scope,"install-path") == 0) { DBusString temp; @@ -2604,7 +2608,11 @@ _dbus_get_mutex_name(DBusString *out,const char *scope) _dbus_string_init(out); _dbus_string_append(out,cDBusDaemonMutex); - if (strcmp(scope,"install-path") == 0) + if (!scope) + { + return TRUE; + } + else if (strcmp(scope,"install-path") == 0) { DBusString temp; -- 2.7.4