[evolution/wip-webkit2] EWebView - When handling gtk-stock URI scheme don't crash when query is NULL
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip-webkit2] EWebView - When handling gtk-stock URI scheme don't crash when query is NULL
- Date: Wed, 20 Nov 2013 12:58:53 +0000 (UTC)
commit cb2038f887a6c86bfa1f1eff568bb0a696622c9a
Author: Tomas Popela <tpopela redhat com>
Date: Wed Nov 20 12:46:38 2013 +0100
EWebView - When handling gtk-stock URI scheme don't crash when query is NULL
e-util/e-web-view.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 3eb27d6..cb7e9d7 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -1767,12 +1767,12 @@ web_view_gtk_stock_uri_scheme_appeared_cb (WebKitURISchemeRequest *request,
gsize buff_len = 0;
GError *local_error = NULL;
- g_warning ("%s", __FUNCTION__);
uri = soup_uri_new (webkit_uri_scheme_request_get_uri (request));
- if (uri != NULL)
+
+ if (uri && uri->query)
query = soup_form_decode (uri->query);
- if (query != NULL) {
+ if (query) {
a_size = g_hash_table_lookup (query, "size");
if (a_size != NULL)
size = atoi (a_size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]