]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus-object-tree: Correctly report failure from an internal test
authorPhilip Withnall <withnall@endlessm.com>
Fri, 10 Feb 2017 11:05:21 +0000 (11:05 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 14 Feb 2017 08:52:39 +0000 (08:52 +0000)
Coverity ID: 54711
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99758
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-object-tree.c

index afbd61f793cdec20cbf5d726948c4edec26337f4..77a42250e761e24921fa82753d2430c89706be0a 100644 (file)
@@ -2315,11 +2315,9 @@ object_tree_test_iteration (void *data)
 dbus_bool_t
 _dbus_object_tree_test (void)
 {
-  _dbus_test_oom_handling ("object tree",
-                           object_tree_test_iteration,
-                           NULL);
-
-  return TRUE;
+  return _dbus_test_oom_handling ("object tree",
+                                  object_tree_test_iteration,
+                                  NULL);
 }
 
 #endif /* !DOXYGEN_SHOULD_SKIP_THIS */