]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Fixed case when no scope attribute is used.
authorRalf Habacker <ralf.habacker@freenet.de>
Fri, 27 Aug 2010 15:03:16 +0000 (17:03 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Mon, 27 Sep 2010 19:53:39 +0000 (21:53 +0200)
dbus/dbus-sysdeps-win.c

index 97256c6de8d2ebb9a7d2bc37b8c819fd2a990211..821bc7befe1f534fa1e2d861223827e10dc1baa9 100644 (file)
@@ -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;