projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes bad semantics (an invalid fd is -1 not 0).
[apps/madmutt.git]
/
lib-mx
/
compress.c
diff --git
a/lib-mx/compress.c
b/lib-mx/compress.c
index
9e44f34
..
1684dd3
100644
(file)
--- a/
lib-mx/compress.c
+++ b/
lib-mx/compress.c
@@
-174,7
+174,7
@@
int mutt_check_mailbox_compressed (CONTEXT * ctx)
return 0;
}
return 0;
}
-int mutt_open_read_compressed
(CONTEXT * ctx)
+int mutt_open_read_compressed(CONTEXT * ctx)
{
char *cmd;
FILE *fp;
{
char *cmd;
FILE *fp;
@@
-204,9
+204,8
@@
int mutt_open_read_compressed (CONTEXT * ctx)
return -1;
}
close(tmpfd);
return -1;
}
close(tmpfd);
-
- ctx->path = p_dupstr(tmppath, m_strlen(tmppath));
+ ctx->path = p_dupstr(tmppath, m_strlen(tmppath));
ctx->cinfo->size = get_size(ctx->realpath);
if (!ctx->quiet)
ctx->cinfo->size = get_size(ctx->realpath);
if (!ctx->quiet)
@@
-279,7
+278,7
@@
int mutt_open_append_compressed (CONTEXT * ctx)
if (!get_append_command (ctx->path, ctx)) {
if (ci->open && ci->close)
if (!get_append_command (ctx->path, ctx)) {
if (ci->open && ci->close)
- return mutt_open_read_compressed
(ctx);
+ return mutt_open_read_compressed(ctx);
ctx->magic = 0;
p_delete(&ctx->cinfo);
ctx->magic = 0;
p_delete(&ctx->cinfo);