]> granicus.if.org Git - mutt/commitdiff
Don't clear the error line whenever dotlocking a file.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 1 Sep 1999 07:47:40 +0000 (07:47 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 1 Sep 1999 07:47:40 +0000 (07:47 +0000)
mx.c

diff --git a/mx.c b/mx.c
index 4ad8eaf4145c55c9cd21eb3e2bcd8d9a1222d65c..606db5871886be0bb0ed8901e77aaaf7c26d27e0 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -101,11 +101,10 @@ static int dotlock_file (const char *path, int retry)
 {
   int r;
   int flags = DL_FL_USEPRIV | DL_FL_RETRY;
-  
+
   if (retry) retry = 1;
 
 retry_lock:
-  mutt_clear_error();
   if ((r = invoke_dotlock(path, flags, retry)) == DL_EX_EXIST)
   {
     if (!option (OPTNOCURSES))
@@ -118,6 +117,7 @@ retry_lock:
       {
        flags |= DL_FL_FORCE;
        retry--;
+       mutt_clear_error ();
        goto retry_lock;
       }
     }