[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch for sed: initialize output_fd
From: |
Mads Martin Joergensen |
Subject: |
patch for sed: initialize output_fd |
Date: |
Wed, 23 Jun 2004 18:17:25 +0200 |
User-agent: |
Mutt/1.5.6i |
Hey guys,
We want to initialize the outputfd, so here's a patch from RĂ¼diger
Oertel (Cc'ed):
--- sed/execute.c
+++ sed/execute.c
@@ -668,6 +668,7 @@
input->in_file_name = name;
output_file.fp = ck_mkstemp (&input->out_file_name, tmpdir, "sed");
+ output_fd = fileno(output_file.fp);
free (tmpdir);
fstat (fileno (input->fp), &st);
--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- patch for sed: initialize output_fd,
Mads Martin Joergensen <=