diff options
author | Steven Schubiger <stsc@refcnt.org> | 2015-06-15 22:44:03 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2015-06-15 22:44:03 +0200 |
commit | 97cb2378dac4a73e7546196a05117390da8a8b02 (patch) | |
tree | aec52fda751165f21166839a17f7ab12fee4bb04 | |
parent | c15ccf3840d0ba82d105333b8a8212967af413dd (diff) | |
download | colorize-97cb2378dac4a73e7546196a05117390da8a8b02.tar.gz colorize-97cb2378dac4a73e7546196a05117390da8a8b02.tar.bz2 |
Don't initialize static variables explicitly
-rw-r--r-- | colorize.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -186,18 +186,18 @@ static const struct { { bg_colors, sizeof (bg_colors) / sizeof (struct color), "background" }, }; -static FILE *stream = NULL; +static FILE *stream; #if DEBUG -static FILE *log = NULL; +static FILE *log; #endif -static unsigned int stacked_vars = 0; -static void **vars_list = NULL; +static unsigned int stacked_vars; +static void **vars_list; -static bool clean = false; -static bool clean_all = false; +static bool clean; +static bool clean_all; -static char *exclude = NULL; +static char *exclude; static const char *program_name; @@ -253,7 +253,7 @@ static void release_var (void **, unsigned int, void **); extern char *optarg; extern int optind; -static int opt_type = 0; +static int opt_type; int main (int argc, char **argv) |