aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-06-28 18:00:55 +0800
committerXan Lopez <xan@igalia.com>2012-06-28 18:00:55 +0800
commit680535623ace29e60a51728e0b33993b6d8cfc25 (patch)
tree7ff50bf85f73554480b9ba0641bff16ffe021d24 /embed/ephy-web-view.c
parentc8d755a095494d91e23e5764623ea53c72190e69 (diff)
downloadgsoc2013-epiphany-680535623ace29e60a51728e0b33993b6d8cfc25.tar
gsoc2013-epiphany-680535623ace29e60a51728e0b33993b6d8cfc25.tar.gz
gsoc2013-epiphany-680535623ace29e60a51728e0b33993b6d8cfc25.tar.bz2
gsoc2013-epiphany-680535623ace29e60a51728e0b33993b6d8cfc25.tar.lz
gsoc2013-epiphany-680535623ace29e60a51728e0b33993b6d8cfc25.tar.xz
gsoc2013-epiphany-680535623ace29e60a51728e0b33993b6d8cfc25.tar.zst
gsoc2013-epiphany-680535623ace29e60a51728e0b33993b6d8cfc25.zip
ephy-web-view: add type checks for the set_typed_address method parameters
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index cf7e6628e..3d5e03896 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);