From 4f1113320fef9ae973a528ee405f59c4774a5cd7 Mon Sep 17 00:00:00 2001 From: Sebastien Bacher Date: Wed, 4 Dec 2013 18:34:30 +0100 Subject: [PATCH] reset the error to NULL, so the next call is working --- src/mcd-account-manager-default.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcd-account-manager-default.c b/src/mcd-account-manager-default.c index 0a89fe1..c8a75d8 100644 --- a/src/mcd-account-manager-default.c +++ b/src/mcd-account-manager-default.c @@ -236,7 +236,7 @@ _commit (const McpAccountStorage *self, if (!mcd_ensure_directory (dir, &error)) { g_warning ("%s", error->message); - g_error_free (error); + g_clear_error (error); /* fall through anyway: writing to the file will fail, but it does * give us a chance to commit to the keyring too */ } -- 1.8.5