Clear local error variable after invoking giterr_clear().