From: Ralf Habacker Date: Fri, 27 Aug 2010 15:03:16 +0000 (+0200) Subject: Fixed case when no scope attribute is used. X-Git-Tag: dbus-1.4.1~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72ce31c59fa5e9c89355bad2c9eeb9488d829475;p=thirdparty%2Fdbus.git Fixed case when no scope attribute is used. --- diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 97256c6de..821bc7bef 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;