aboutsummaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index 19a1b93..cf2dd8c 100644
--- a/http.c
+++ b/http.c
@@ -493,7 +493,7 @@ static void ctx_free(struct ctx *const c)
{
struct put *const p = &c->u.put;
- if (p->f >= 0 && fclose(p->f))
+ if (p->f && fclose(p->f))
fprintf(stderr, "%s: fclose(3) p->f: %s\n",
__func__, strerror(errno));