From 0932dba29fa9de8e7268a924c4c93ccebb7dc65c Mon Sep 17 00:00:00 2001 From: Sebastien Bacher Date: Wed, 4 Dec 2013 18:34:30 +0100 Subject: reset the error to NULL, so the next call is working [fixed argument type -smcv] Reviewed-by: Simon McVittie Bug: https://bugs.freedesktop.org/show_bug.cgi?id=72138 --- 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 0a89fe1a..1403f843 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 */ } -- cgit v1.2.1