X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mx%2Fcompress.c;h=df6c761078c970ae313d9d52b6ca1b30c71a73b9;hp=1684dd32102d0f741625016f420c087a5bc6e5a1;hb=18ebc21bf1d29ed07fa007329879493493e18eb3;hpb=76f757084ec84861326ef36977c6e116da9a1432;ds=sidebyside diff --git a/lib-mx/compress.c b/lib-mx/compress.c index 1684dd3..df6c761 100644 --- a/lib-mx/compress.c +++ b/lib-mx/compress.c @@ -200,7 +200,7 @@ int mutt_open_read_compressed(CONTEXT * ctx) /* If we cannot open tempfile, that means the file already exists (!?) * or we are following a symlink, which is bad and insecure. */ - if(!tmpfd) { + if(tmpfd < 0) { return -1; } close(tmpfd);