[epiphany] ephy-web-view: add type checks for the set_typed_address method parameters



commit 680535623ace29e60a51728e0b33993b6d8cfc25
Author: Xan Lopez <xan igalia com>
Date:   Thu Jun 28 12:00:55 2012 +0200

    ephy-web-view: add type checks for the set_typed_address method parameters

 embed/ephy-web-view.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index cf7e662..3d5e038 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -3502,7 +3502,11 @@ void
 ephy_web_view_set_typed_address (EphyWebView *view,
                                  const char *address)
 {
-  EphyWebViewPrivate *priv = EPHY_WEB_VIEW (view)->priv;
+  EphyWebViewPrivate *priv;
+
+  g_return_if_fail (EPHY_IS_WEB_VIEW (view));
+
+  priv = EPHY_WEB_VIEW (view)->priv;
 
   g_free (priv->typed_address);
   priv->typed_address = g_strdup (address);



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