We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74c6f5d commit eca3cf6Copy full SHA for eca3cf6
src/inputs.c
@@ -623,6 +623,7 @@ open_data_stream(Options *opts)
623
* in open time. But it doesn't look like robust solution.
624
*/
625
f_data = fopen(locpathname, mode);
626
+ f_data_opts = 0;
627
if (!f_data)
628
{
629
/* save errno, and prepare error message */
@@ -648,8 +649,6 @@ open_data_stream(Options *opts)
648
649
650
if (f_data)
651
- f_data_opts = 0;
652
-
653
if (fstat(fileno(f_data), &statbuf) != 0)
654
655
current_state->_errno = errno;
@@ -823,6 +822,8 @@ open_data_stream(Options *opts)
823
822
void
824
close_data_stream(void)
825
+//leave("close file");
826
+
827
if (close_f_data)
828
829
fclose(f_data);
0 commit comments