From d49a2b4dfcf434aa2d43278f1646dd5e0d94331f Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Sun, 28 Jun 2009 17:28:52 +0200 Subject: [PATCH] Infobar: Fix minor bug and comments in infobar_draw_statustext. --- src/infobar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/infobar.c b/src/infobar.c index 9165796..3bd6ad3 100644 --- a/src/infobar.c +++ b/src/infobar.c @@ -173,7 +173,7 @@ infobar_draw_statustext(int sc, char *str) char *buf = NULL; char *strwc = NULL; char col[8] = { 0 }; - int i, j, k, c; + int i, j, c, k = 0; /* If the str == the current statustext, return (not needed) */ if(!str) @@ -205,7 +205,6 @@ infobar_draw_statustext(int sc, char *str) /* Draw text with its color */ if(c) { - /* Alloc variables */ buf = _strdup(strwc); for(i = k; i < strlen(str); ++i, ++k)