]> git.refcnt.org Git - colorize.git/blobdiff - colorize.c
Simplify code in cleanup function
[colorize.git] / colorize.c
index 06ef8fba68707d2a477c0b3042756282b42c664c..07a409edea6e29994603f8f2af48ab04bebc7850 100644 (file)
 
 #define DEBUG_FILE "debug.txt"
 
-#define VERSION "0.56"
+#define VERSION "0.57"
 
 typedef enum { false, true } bool;
 
@@ -257,7 +257,7 @@ extern int optind;
 int
 main (int argc, char **argv)
 {
-    unsigned int arg_cnt = 0;
+    unsigned int arg_cnt;
 
     bool bold = false;
 
@@ -493,9 +493,7 @@ cleanup (void)
       {
         unsigned int i;
         for (i = 0; i < stacked_vars; i++)
-          if (vars_list[i])
-            free (vars_list[i]);
-
+          free (vars_list[i]);
         free_null (vars_list);
       }
 }