summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@web.de>2006-09-11 20:31:06 +0200
committerDanny Kukawka <danny.kukawka@web.de>2006-09-11 20:31:06 +0200
commit818b6de6599eac64f6879b543ded5f96059de0af (patch)
tree4e54f6d810529db58899015b1902b78d98ff45a5
parent89248c8d6f604235da02ad1168651830cd10ee3f (diff)
replaced LIBHAL_FREE_DBUS_ERROR with dbus_error_free()
Replaced usage of macro LIBHAL_FREE_DBUS_ERROR with dbus_error_free(). NOTE: if you use dbus_error_is_set() to check if the error is set, you should not use LIBHAL_FREE_DBUS_ERROR to free the error. Better use dbus_error_free() directly in this case to avoid double call of dbus_error_is_set().
-rw-r--r--libhal-storage/libhal-storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhal-storage/libhal-storage.c b/libhal-storage/libhal-storage.c
index 3ddcad5a..73952291 100644
--- a/libhal-storage/libhal-storage.c
+++ b/libhal-storage/libhal-storage.c
@@ -1238,7 +1238,7 @@ libhal_volume_from_udi (LibHalContext *hal_ctx, const char *udi)
return vol;
error:
if (dbus_error_is_set (&error)) {
- LIBHAL_FREE_DBUS_ERROR(&error);
+ dbus_error_free (&error);
}
libhal_free_string (vol_fsusage_textual);
libhal_free_string (disc_type_textual);