Merge "[lib-fix] Fixed return value of kdbus_write_msg Change-Id: Ia3a45a6a79b4078929...
[platform/upstream/dbus.git] / dbus / dbus-file-win.c
index 53a3fc5..06a8ea1 100644 (file)
@@ -275,7 +275,10 @@ _dbus_string_save_to_file (const DBusString *str,
       goto out;
     }
   if (world_readable)
-    _dbus_make_file_world_readable (tmp_filename_c);
+    {
+      if (! _dbus_make_file_world_readable (&tmp_filename, error))
+        goto out;
+    }
 
   _dbus_verbose ("tmp file %s hnd %p opened\n", tmp_filename_c, hnd);