From 680535623ace29e60a51728e0b33993b6d8cfc25 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Thu, 28 Jun 2012 12:00:55 +0200 Subject: ephy-web-view: add type checks for the set_typed_address method parameters --- embed/ephy-web-view.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'embed') 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); -- cgit