[epiphany] Initialize ephy_web_view_get_security_level's output param "description"
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] Initialize ephy_web_view_get_security_level's output param "description"
- Date: Thu, 29 Oct 2009 19:54:03 +0000 (UTC)
commit b23e9c2364681f4bedeed7b5568d05aecb24cdd0
Author: Iain Nicol <iain thenicols net>
Date: Thu Oct 29 13:56:55 2009 +0000
Initialize ephy_web_view_get_security_level's output param "description"
Partial fix for bug #599757.
Signed-off-by: Xan Lopez <xan gnome org>
embed/ephy-web-view.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 0d3be0d..4fbfa98 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;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]