[evince/gdbus] [shell] Save a strdup



commit bb38bcbd7a34e5505f00b5ae05497d7dc04ee45c
Author: Christian Persch <chpe gnome org>
Date:   Mon May 10 01:27:18 2010 +0200

    [shell] Save a strdup

 shell/ev-application.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/ev-application.c b/shell/ev-application.c
index 136fbb6..a09906c 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -629,7 +629,7 @@ method_call_cb (GDBusConnection       *connection,
 		return;
 	}
 
-        while (g_variant_iter_loop (iter, "{sv}", &key, &value)) {
+        while (g_variant_iter_loop (iter, "{&sv}", &key, &value)) {
                 if (strcmp (key, "display") == 0 && g_variant_classify (value) == G_VARIANT_CLASS_STRING) {
                         display = ev_display_open_if_needed (g_variant_get_string (value, NULL));
                 } else if (strcmp (key, "screen") == 0 && g_variant_classify (value) == G_VARIANT_CLASS_STRING) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]