aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Nicol <iain@thenicols.net>2009-10-29 21:56:55 +0800
committerXan Lopez <xan@gnome.org>2009-10-30 02:43:20 +0800
commitb23e9c2364681f4bedeed7b5568d05aecb24cdd0 (patch)
tree21a98f80343af5808b964ed44c17e5915c923b34
parentc87401f28cb8ef3a645dfd5a687be6ddbbfe6790 (diff)
downloadgsoc2013-epiphany-b23e9c2364681f4bedeed7b5568d05aecb24cdd0.tar
gsoc2013-epiphany-b23e9c2364681f4bedeed7b5568d05aecb24cdd0.tar.gz
gsoc2013-epiphany-b23e9c2364681f4bedeed7b5568d05aecb24cdd0.tar.bz2
gsoc2013-epiphany-b23e9c2364681f4bedeed7b5568d05aecb24cdd0.tar.lz
gsoc2013-epiphany-b23e9c2364681f4bedeed7b5568d05aecb24cdd0.tar.xz
gsoc2013-epiphany-b23e9c2364681f4bedeed7b5568d05aecb24cdd0.tar.zst
gsoc2013-epiphany-b23e9c2364681f4bedeed7b5568d05aecb24cdd0.zip
Initialize ephy_web_view_get_security_level's output param "description"
Partial fix for bug #599757. Signed-off-by: Xan Lopez <xan@gnome.org>
-rw-r--r--embed/ephy-web-view.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 0d3be0d8f..4fbfa9859 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2011,8 +2011,9 @@ ephy_web_view_get_js_status (EphyWebView *view)
* @level: return value of security level
* @description: return value of the description of the security level
*
- * Fetches the #EphyWebViewSecurityLevel and a newly-allocated string description
- * of the security state of @view.
+ * Fetches the #EphyWebViewSecurityLevel and a string description of the
+ * security state of @view. The description will be a newly-allocated
+ * string or %NULL.
**/
void
ephy_web_view_get_security_level (EphyWebView *view,
@@ -2023,6 +2024,9 @@ ephy_web_view_get_security_level (EphyWebView *view,
if (level)
*level = view->priv->security_level;
+
+ if (description)
+ *description = NULL;
}
/**