projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops
[apps/madmutt.git]
/
recvattach.c
diff --git
a/recvattach.c
b/recvattach.c
index
94ef9ab
..
b9db799
100644
(file)
--- a/
recvattach.c
+++ b/
recvattach.c
@@
-486,16
+486,16
@@
void mutt_save_attachment_list (FILE * fp, int tag, BODY * top, HEADER * hdr,
}
static void
}
static void
-mutt_query_pipe_attachment
(char *command, FILE * fp, BODY * body, int afilter)
+mutt_query_pipe_attachment(char *command, FILE * fp, BODY * body, int afilter)
{
char tfile[_POSIX_PATH_MAX];
char warning[STRING + _POSIX_PATH_MAX];
{
char tfile[_POSIX_PATH_MAX];
char warning[STRING + _POSIX_PATH_MAX];
- int tempfd;
+ int tempfd
= -1
;
if (afilter) {
if (afilter) {
- snprintf
(warning, sizeof (warning),
-
_("WARNING! You are about to overwrite %s, continue?"),
-
body->filename);
+ snprintf(warning, sizeof (warning),
+ _("WARNING! You are about to overwrite %s, continue?"),
+ body->filename);
if (mutt_yesorno (warning, M_NO) != M_YES) {
CLEARLINE (LINES - 1);
return;
if (mutt_yesorno (warning, M_NO) != M_YES) {
CLEARLINE (LINES - 1);
return;
@@
-503,7
+503,7
@@
mutt_query_pipe_attachment (char *command, FILE * fp, BODY * body, int afilter)
tempfd = m_tempfd(tfile, sizeof(tfile), NONULL(Tempdir), NULL);
}
tempfd = m_tempfd(tfile, sizeof(tfile), NONULL(Tempdir), NULL);
}
- if (mutt_pipe_attachment
(fp, body, command, tempfd)) {
+ if (mutt_pipe_attachment(fp, body, command, tempfd)) {
if (afilter) {
mutt_unlink (body->filename);
mutt_rename_file (tfile, body->filename);
if (afilter) {
mutt_unlink (body->filename);
mutt_rename_file (tfile, body->filename);