From fd1ce00c45ee40ff22e715f3f45ec49d317c71b1 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 19 Mar 2013 19:40:55 +0100 Subject: ephy-profile-migrator: Check for errors correctly This guards against error paths that might not return errors. It'll crash in the error path instead :) --- lib/ephy-profile-migrator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ephy-profile-migrator.c b/lib/ephy-profile-migrator.c index 934fc1143..ac991af64 100644 --- a/lib/ephy-profile-migrator.c +++ b/lib/ephy-profile-migrator.c @@ -840,8 +840,7 @@ store_form_auth_data_cb (GObject *object, { GError *error = NULL; - ephy_form_auth_data_store_finish (res, &error); - if (error) { + if (ephy_form_auth_data_store_finish (res, &error) == FALSE) { g_warning ("Couldn't store a form password: %s", error->message); g_error_free (error); goto out; -- cgit