[gjs] dbus: Pass the correct string value for utf8 conversion
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] dbus: Pass the correct string value for utf8 conversion
- Date: Fri, 10 Dec 2010 22:01:44 +0000 (UTC)
commit 06460baa54334f2d2cc25d1a471a1a70f070e79f
Author: Colin Walters <walters verbum org>
Date: Fri Dec 10 16:57:39 2010 -0500
dbus: Pass the correct string value for utf8 conversion
We should obviously be using the result of JS_ValueToString we're
computing.
modules/dbus-values.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/dbus-values.c b/modules/dbus-values.c
index ba615bc..b33b8c7 100644
--- a/modules/dbus-values.c
+++ b/modules/dbus-values.c
@@ -82,7 +82,7 @@ _gjs_js_one_value_from_dbus_array_dict_entry(JSContext *context,
gjs_throw(context, "Couldn't convert value to string");
goto out;
}
- if (!gjs_string_to_utf8(context, key_value, &key))
+ if (!gjs_string_to_utf8(context, STRING_TO_JSVAL(key_str), &key))
goto out;
dbus_message_iter_next(&entry_iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]