aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2015-06-15 22:44:03 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2015-06-15 22:44:03 +0200
commit97cb2378dac4a73e7546196a05117390da8a8b02 (patch)
treeaec52fda751165f21166839a17f7ab12fee4bb04 /colorize.c
parentc15ccf3840d0ba82d105333b8a8212967af413dd (diff)
downloadcolorize-97cb2378dac4a73e7546196a05117390da8a8b02.tar.gz
colorize-97cb2378dac4a73e7546196a05117390da8a8b02.tar.bz2
Don't initialize static variables explicitly
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/colorize.c b/colorize.c
index ea2a780..1d3ea2b 100644
--- a/colorize.c
+++ b/colorize.c
@@ -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)