diff --git a/lib/libqof/qof/qofsession.c b/lib/libqof/qof/qofsession.c index c63ac07037..dbc46691af 100644 --- a/lib/libqof/qof/qofsession.c +++ b/lib/libqof/qof/qofsession.c @@ -1009,6 +1009,9 @@ qof_session_begin (QofSession *session, const char * book_id, #ifdef G_OS_WIN32 if (NULL == session->backend) { + /* Clear the error condition of previous errors */ + qof_session_clear_error (session); + /* On windows, a colon can be part of a normal filename. So if no backend was found (which means the part before the colon wasn't an access method), fall back to the file backend. */