aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
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);