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-script.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dbus/dbus-auth-script.c') diff --git a/dbus/dbus-auth-script.c b/dbus/dbus-auth-script.c index a4102af3..93d6f78c 100644 --- a/dbus/dbus-auth-script.c +++ b/dbus/dbus-auth-script.c @@ -244,7 +244,7 @@ dbus_bool_t _dbus_auth_script_run (const DBusString *filename) { DBusString file; - DBusError error; + DBusError error = DBUS_ERROR_INIT; DBusString line; dbus_bool_t retval; int line_no; @@ -276,7 +276,6 @@ _dbus_auth_script_run (const DBusString *filename) return FALSE; } - dbus_error_init (&error); if (!_dbus_file_get_contents (&file, filename, &error)) { _dbus_warn ("Getting contents of %s failed: %s\n", _dbus_string_get_const_data (filename), error.message); -- cgit