X-Git-Url: http://git.refcnt.org/?a=blobdiff_plain;f=colorize.c;h=07a409edea6e29994603f8f2af48ab04bebc7850;hb=739d76185a32b0be8f236f0fdbbfb15080a032ef;hp=06ef8fba68707d2a477c0b3042756282b42c664c;hpb=7f313b1c22e61541aea2bcbe666639e05e69c9ad;p=colorize.git diff --git a/colorize.c b/colorize.c index 06ef8fb..07a409e 100644 --- a/colorize.c +++ b/colorize.c @@ -110,7 +110,7 @@ #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); } }