]> git.refcnt.org Git - colorize.git/commitdiff
Simplify code in cleanup function
authorSteven Schubiger <stsc@refcnt.org>
Sun, 25 Oct 2015 19:52:26 +0000 (20:52 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Sun, 25 Oct 2015 19:52:26 +0000 (20:52 +0100)
colorize.c

index ee2db84802f015312b1e9f24620d87619c80032d..07a409edea6e29994603f8f2af48ab04bebc7850 100644 (file)
@@ -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);
       }
 }