Search
lxdream.org :: lxdream :: r479:e030b18d2744
lxdream 0.9.1
released Jun 29
Download Now
changeset479:e030b18d2744
parent478:57f73576c974
child480:d28c2992f5ee
authornkeynes
dateWed Oct 31 11:22:10 2007 +0000 (12 years ago)
Fix uninitialized value
src/gui/gdrom_menu.c
1.1 --- a/src/gui/gdrom_menu.c Wed Oct 31 09:11:14 2007 +0000
1.2 +++ b/src/gui/gdrom_menu.c Wed Oct 31 11:22:10 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gdrom_menu.c,v 1.3 2007-10-28 08:29:29 nkeynes Exp $
1.6 + * $Id: gdrom_menu.c,v 1.4 2007-10-31 11:22:10 nkeynes Exp $
1.7 *
1.8 * Creates and manages the GD-Rom attachment menu.
1.9 *
1.10 @@ -68,7 +68,7 @@
1.11 }
1.12
1.13 GList *ptr;
1.14 - int size;
1.15 + int size = 0;
1.16 for( ptr = gdrom_recent_list; ptr != NULL; ptr = g_list_next(ptr) ) {
1.17 size += strlen( (gchar *)ptr->data ) + 1;
1.18 }
.