Code

Initialize highlight to zero.
authorKalle Wallin <kaw@linux.se>
Tue, 20 Apr 2004 10:50:51 +0000 (10:50 +0000)
committerKalle Wallin <kaw@linux.se>
Tue, 20 Apr 2004 10:50:51 +0000 (10:50 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@845 09075e82-0dd4-0310-85a5-a0d7c8717e4f

list_window.c

index fcb25ca314490faa58f98b590086a4ab54d1f535..d0fcaa58e1cd078470b945c0df0af41a24b4d965 100644 (file)
@@ -152,7 +152,7 @@ list_window_paint(list_window_t *lw,
 
   for(i=0; i<lw->rows; i++)
     {
-      int highlight;
+      int highlight = 0;
       char *label;
 
       label = (callback) (lw->start+i, &highlight, callback_data);