From c1b4f06d9d024ed062f2e71a98f5a23c732bd475 Mon Sep 17 00:00:00 2001 From: Gustavo Noronha Silva Date: Thu, 26 Mar 2009 15:36:02 +0000 Subject: Check for NULL uri in ephy_file_delete_uri. svn path=/trunk/; revision=8941 --- lib/ephy-file-helpers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c index 7f38978dd..c3741a7b5 100644 --- a/lib/ephy-file-helpers.c +++ b/lib/ephy-file-helpers.c @@ -768,6 +768,8 @@ ephy_file_delete_uri (const char *uri) GFile *file; gboolean ret; + g_return_if_fail (uri); + file = g_file_new_for_uri (uri); ret = g_file_delete (file, NULL, NULL); -- cgit v1.2.3