[PATCH] usage of dbus_error in for-blocks

Danny Kukawka danny.kukawka at web.de
Mon Feb 6 02:37:18 PST 2006


Hi,

this patches fixes problems with usage of dbus_error within a for-block. Need 
to be sure that the error is empty and initialised for each usage. If not we 
get potentially e.g. such error messages from dbus:

2385: arguments to dbus_connection_send_with_reply_and_block() were incorrect, 
assertion \"(error) == NULL || !dbus_error_is_set ((error))\" failed in file 
dbus-connection.c line 2766.
This is normally a bug in some application using the D-BUS library.

Please review.

Cheers,

Danny

 addon-acpi.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)

 lshal.c |    6 ++++++
 1 files changed, 6 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-addon_acpi_dbus_error.diff
Type: text/x-diff
Size: 451 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060206/d31e9c58/hal-fix-addon_acpi_dbus_error.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-lshal_dbus_error.diff
Type: text/x-diff
Size: 496 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060206/d31e9c58/hal-fix-lshal_dbus_error.bin


More information about the hal mailing list