From f55897af74ac072d3447e5cf513d0f4718b142c7 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 10 Oct 2007 11:41:57 +0100 Subject: Use DBUS_ERROR_INIT instead of dbus_error_init wherever it's clearly equivalent --- dbus/dbus-auth-util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dbus/dbus-auth-util.c') diff --git a/dbus/dbus-auth-util.c b/dbus/dbus-auth-util.c index 45627896..e5019042 100644 --- a/dbus/dbus-auth-util.c +++ b/dbus/dbus-auth-util.c @@ -44,7 +44,7 @@ process_test_subdir (const DBusString *test_base_dir, DBusString filename; DBusDirIter *dir; dbus_bool_t retval; - DBusError error; + DBusError error = DBUS_ERROR_INIT; retval = FALSE; dir = NULL; @@ -65,7 +65,6 @@ process_test_subdir (const DBusString *test_base_dir, if (!_dbus_string_init (&filename)) _dbus_assert_not_reached ("didn't allocate filename string\n"); - dbus_error_init (&error); dir = _dbus_directory_open (&test_directory, &error); if (dir == NULL) { -- cgit