Initialize status in uip/send.c
authorPhilipp Takacs <philipp@bureaucracy.de>
Thu, 29 Jan 2015 22:02:58 +0000 (23:02 +0100)
committerPhilipp Takacs <philipp@bureaucracy.de>
Thu, 29 Jan 2015 22:02:58 +0000 (23:02 +0100)
Thanks Marcin Cieslak <saper@saper.info> for reporting.

uip/send.c

index 07f2545..492f027 100644 (file)
@@ -283,7 +283,7 @@ sendsbr(char **vec, int vecp, char *drft, struct stat *st)
                break;
        }
 
                break;
        }
 
-       switch (sendaux(vec, vecp, drft, st)) {
+       switch (status = sendaux(vec, vecp, drft, st)) {
        case OK:
                /* move original draft to +trash folder */
                /* temporary close stdin, for refile not to ask */
        case OK:
                /* move original draft to +trash folder */
                /* temporary close stdin, for refile not to ask */