aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-12-02 15:20:50 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2014-12-02 15:32:28 +0200
commit9123a024f14da7ce48cdf7f0cadfe6850be7501e (patch)
tree3e2b53306d253f2e4b86a8f0be46ffbc581eb32c
parent71642ab4e5501d116854ad878f8778380506f6c5 (diff)
downloadeclat-9123a024f14da7ce48cdf7f0cadfe6850be7501e.tar.gz
eclat-9123a024f14da7ce48cdf7f0cadfe6850be7501e.tar.bz2
Fix generation of consolidated format file.
* etc/flncat.c (main): Reset outchars after opening a new file
-rw-r--r--etc/flncat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/flncat.c b/etc/flncat.c
index 5168cd6..6d57956 100644
--- a/etc/flncat.c
+++ b/etc/flncat.c
@@ -84,8 +84,10 @@ main(int argc, char **argv)
if (i == 1) fputc(c, stdout);
} while (c != EOF && comment(fp, c, i == 1));
+ if (c != EOF) {
if (outchars) {
printf(" else ");
+ outchars = 0;
}
while ((c = fgetc(fp)) != EOF) {
@@ -106,6 +108,7 @@ main(int argc, char **argv)
}
}
}
+ }
fclose(fp);
}
return 0;

Return to:

Send suggestions and report system problems to the System administrator.