diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-03-20 02:40:55 +0800 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-03-20 02:45:04 +0800 |
commit | fd1ce00c45ee40ff22e715f3f45ec49d317c71b1 (patch) | |
tree | 4ffb9c5580b54862b293c2c5db4ea1a829225c09 | |
parent | 7eaba5831d5e339ee0ed114ff7478d50f1c255b4 (diff) | |
download | gsoc2013-epiphany-fd1ce00c45ee40ff22e715f3f45ec49d317c71b1.tar gsoc2013-epiphany-fd1ce00c45ee40ff22e715f3f45ec49d317c71b1.tar.gz gsoc2013-epiphany-fd1ce00c45ee40ff22e715f3f45ec49d317c71b1.tar.bz2 gsoc2013-epiphany-fd1ce00c45ee40ff22e715f3f45ec49d317c71b1.tar.lz gsoc2013-epiphany-fd1ce00c45ee40ff22e715f3f45ec49d317c71b1.tar.xz gsoc2013-epiphany-fd1ce00c45ee40ff22e715f3f45ec49d317c71b1.tar.zst gsoc2013-epiphany-fd1ce00c45ee40ff22e715f3f45ec49d317c71b1.zip |
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 :)
-rw-r--r-- | lib/ephy-profile-migrator.c | 3 |
1 files changed, 1 insertions, 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; |