SHA256
3
0
forked from pool/sed
sed/sed-dont_close_twice.patch

17 lines
464 B
Diff

http://lists.gnu.org/archive/html/bug-gnu-utils/2014-06/msg00000.html
Index: sed/utils.c
===================================================================
--- sed/utils.c.orig
+++ sed/utils.c
@@ -252,8 +252,8 @@ ck_fclose(FILE *stream)
{
if (!stream || stream == cur->fp)
{
- do_ck_fclose (cur->fp);
prev->link = cur->link;
+ do_ck_fclose (cur->fp);
free(cur->name);
free(cur);
}