summarylogtreecommitdiffstats
path: root/always-false.patch
blob: a7b1a75682ee00a39d9a3a17e5e58f52c45e9d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 */