[evolution] EFileRequest: Fix build with additional debug messages enabled



commit 623517d643d3007aef075d53320df57edfe36909
Author: Tomas Popela <tpopela redhat com>
Date:   Mon May 5 10:05:13 2014 +0200

    EFileRequest: Fix build with additional debug messages enabled

 e-util/e-file-request.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-file-request.c b/e-util/e-file-request.c
index b2e4fea..f6b4ac2 100644
--- a/e-util/e-file-request.c
+++ b/e-util/e-file-request.c
@@ -21,6 +21,7 @@
 
 #include <libsoup/soup.h>
 
+#include <stdio.h>
 #include <string.h>
 
 #define d(x)
@@ -93,7 +94,12 @@ file_request_send_async (SoupRequest *request,
 {
        GSimpleAsyncResult *simple;
 
-       d (printf ("received request for %s\n", soup_uri_to_string (uri, FALSE)));
+       d (
+               SoupURI *soup_uri = soup_request_get_uri (request);
+               gchar *uri = soup_uri_to_string (soup_uri, FALSE);
+               printf ("received request for %s\n", uri);
+               g_free (uri);
+       );
 
        /* WebKit won't allow us to load data through local file:// protocol
         * when using "remote" mail:// protocol, so we have evo-file://


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