* cmd_ucls(): don't overwrite the upload type before we use it
authorWilfried Göesgens <willi@citadel.org>
Fri, 21 May 2010 17:48:50 +0000 (17:48 +0000)
committerWilfried Göesgens <willi@citadel.org>
Fri, 21 May 2010 17:48:50 +0000 (17:48 +0000)
citadel/file_ops.c

index f303ac28c857904b9060e2a8e9aeff80173b8978..ada1a78141a11a6e7ee583e5c12885091872531b 100644 (file)
@@ -580,7 +580,6 @@ void cmd_ucls(char *cmd)
        CC->upload_fp = NULL;
 
        if ((!strcasecmp(cmd, "1")) && (CC->upload_type != UPL_FILE)) {
-               CC->upload_type = UPL_FILE;
                cprintf("%d Upload completed.\n", CIT_OK);
 
                if (CC->upload_type == UPL_NET) {
@@ -605,6 +604,7 @@ void cmd_ucls(char *cmd)
                        /* FIXME ... here we need to trigger a network run */
                }
 
+               CC->upload_type = UPL_FILE;
                return;
        }