summarylogtreecommitdiffstats
path: root/always-false.patch
diff options
context:
space:
mode:
authorspider-mario2015-06-27 15:59:50 +0200
committerspider-mario2015-06-27 16:04:59 +0200
commitda60fd07736ced6271dad9631a1bd0bcb2c92276 (patch)
tree98cf38b1d8d48c3dcf11cfbd7fb96551522a0985 /always-false.patch
downloadaur-da60fd07736ced6271dad9631a1bd0bcb2c92276.tar.gz
initial import
Diffstat (limited to 'always-false.patch')
-rw-r--r--always-false.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/always-false.patch b/always-false.patch
new file mode 100644
index 000000000000..a7b1a75682ee
--- /dev/null
+++ b/always-false.patch
@@ -0,0 +1,21 @@
+diff a/dos2unix.c b/dos2unix.c
+--- a/dos2unix.c
++++ b/dos2unix.c
+@@ -213,13 +213,15 @@ int convert(char *fn, int convType) {
+
+ /* if we're not working with stdin, close source (in) */
+ if (fn != NULL) {
+- if (fclose(in) != 0, in = NULL)
++ if (fclose(in) != 0)
+ BAIL (-2, argv0);
++ in = NULL;
+ }
+
+ /* close temp file (out) */
+- if (fclose(out) != 0, out = NULL)
++ if (fclose(out) != 0)
+ BAIL (-2, argv0);
++ out = NULL;
+
+
+ /* figure out conversion type */