28 lines
654 B
Diff
28 lines
654 B
Diff
From 0618ad68a289b10bcc0c5fdbc8a0c8fa71542e4d Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Rapha=C3=ABl=20Droz?= <raphael.droz+floss@gmail.com>
|
|
Date: Sun, 27 Mar 2016 17:05:44 -0300
|
|
Subject: [PATCH 1/3] fixed bug #6
|
|
|
|
---
|
|
filter.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/filter.c b/filter.c
|
|
index 2cb145c..5ae7bd6 100644
|
|
--- a/filter.c
|
|
+++ b/filter.c
|
|
@@ -435,8 +435,10 @@ e_write_file(char *filename, int (*func) (FILE *in, struct db_enumerator e),
|
|
if((out = fopen(filename, "a")) == NULL)
|
|
return 1;
|
|
|
|
- if(ftell(out))
|
|
+ if(ftell(out)) {
|
|
+ fclose(out);
|
|
return 1;
|
|
+ }
|
|
|
|
ret = (*func) (out, enumerator);
|
|
|
|
--
|
|
2.13.5
|
|
|