From 333373f90e515bbaf6997dc7bf7385fe114689b2 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Thu, 23 Jan 2014 09:39:17 -0500 Subject: enable_colors: always set color strings Only setting color strings when colors is true allowed subsequent calls to enable colors but not disable them. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- src/pacman/conf.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 4b7ec051..729c9cb6 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -76,6 +76,16 @@ void enable_colors(int colors) colstr->warn = BOLDYELLOW; colstr->err = BOLDRED; colstr->nocolor = NOCOLOR; + } else { + colstr->colon = ":: "; + colstr->title = ""; + colstr->repo = ""; + colstr->version = ""; + colstr->groups = ""; + colstr->meta = ""; + colstr->warn = ""; + colstr->err = ""; + colstr->nocolor = ""; } } -- cgit v1.2.3-24-g4f1b