X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fsend.c;h=13ae761486894030e6e20d6d9f018e9d70884a4e;hb=f9ed40f2742263b3a1023bedee4139b4b18f0a86;hp=7e80bc40f247b570ec865449608c4036df5d3e6f;hpb=e8ac33e207bd0ac7efa723d32687156a9924c3f8;p=mmh diff --git a/uip/send.c b/uip/send.c index 7e80bc4..13ae761 100644 --- a/uip/send.c +++ b/uip/send.c @@ -238,7 +238,6 @@ static int sendsbr(char **vec, int vecp, char *drft, struct stat *st) { int status, dupfd; - char buffer[BUFSIZ]; char *original_draft; /* @@ -290,8 +289,7 @@ sendsbr(char **vec, int vecp, char *drft, struct stat *st) } done=armed_done; - switch (setjmp(env)) { - case OK: + if (setjmp(env) == 0) { status = sendaux(vec, vecp, drft, st) ? NOTOK : OK; if (status == OK) { /* move original draft to +trash folder */ @@ -306,11 +304,8 @@ sendsbr(char **vec, int vecp, char *drft, struct stat *st) dup2(dupfd, 0); close(dupfd); } - break; - - default: + } else { status = DONE; - break; } done=exit; @@ -679,7 +674,7 @@ anno(struct stat *st) char *msgs, *folder; char buf[BUFSIZ]; char *vec[MAXARGS]; - int vecp; + int vecp = 0; char *cp, *dp; if (altmsg && (stat(altmsg, &st2) == NOTOK ||