summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-sha.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-10-10 11:41:57 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-10-11 17:26:30 +0100
commitf55897af74ac072d3447e5cf513d0f4718b142c7 (patch)
tree46d9b68f129998ac8c9fbadf098b6be383519f1a /dbus/dbus-sha.c
parente54d56b7b22dfc4a6eccb4e75e6d76e168fe90a0 (diff)
Use DBUS_ERROR_INIT instead of dbus_error_init wherever it's clearly equivalent
Diffstat (limited to 'dbus/dbus-sha.c')
-rw-r--r--dbus/dbus-sha.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dbus/dbus-sha.c b/dbus/dbus-sha.c
index 9f1cdbb2..8ec50b6f 100644
--- a/dbus/dbus-sha.c
+++ b/dbus/dbus-sha.c
@@ -745,8 +745,8 @@ process_test_data (const char *test_data_dir)
int line_no;
dbus_bool_t retval;
int success_count;
- DBusError error;
-
+ DBusError error = DBUS_ERROR_INIT;
+
retval = FALSE;
if (!_dbus_string_init (&tests_file))
@@ -778,7 +778,6 @@ process_test_data (const char *test_data_dir)
if (!_dbus_concat_dir_and_file (&results_file, &tmp))
_dbus_assert_not_reached ("no memory");
- dbus_error_init (&error);
if (!_dbus_file_get_contents (&tests, &tests_file, &error))
{
fprintf (stderr, "could not load test data file %s: %s\n",