tMake PUT work again. - rohrpost - A commandline mail client to change the world as we see it.
(HTM) git clone git://r-36.net/rohrpost
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 0ffb5eafed724886ae346e18ea9338ebc1e3e5ee
(DIR) parent 77cfd99a75372cb70788a836f1319c16d93112da
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 20 Jun 2015 19:59:27 +0200
Make PUT work again.
Diffstat:
sieve.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/sieve.c b/sieve.c
t@@ -567,9 +567,11 @@ sievemain(int argc, char *argv[])
if (status & DOPUT) {
if (argc > 1) {
data = readfile(argv[1], &len);
+ if (data == NULL)
edie("readfile");
} else {
data = readstdin(&len);
+ if (data == NULL)
edie("readstdin");
}
if (len < 1)