From: skeezix Date: Mon, 15 Feb 2010 14:41:47 +0000 (-0500) Subject: Minor fixes for a couple 'uninitialized vars' that gcc here wasn't informing me of :) X-Git-Tag: Release-2010-05/1~117^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f6ad40c7c627c2649012babfa09a3ae3df99fbb;p=pandora-libraries.git Minor fixes for a couple 'uninitialized vars' that gcc here wasn't informing me of :) --- diff --git a/lib/pnd_conf.c b/lib/pnd_conf.c index 64c9ade..aece00d 100644 --- a/lib/pnd_conf.c +++ b/lib/pnd_conf.c @@ -35,7 +35,7 @@ char *pnd_conf_query_searchpath ( void ) { temp = pnd_conf_get_as_char ( ch, PND_CONF_KEY ); - if ( searchpath ) { + if ( temp ) { searchpath = strdup ( temp ); } else { searchpath = strdup ( PND_CONF_SEARCHPATH ); diff --git a/lib/pnd_notify.c b/lib/pnd_notify.c index 7dd135b..55127b8 100644 --- a/lib/pnd_notify.c +++ b/lib/pnd_notify.c @@ -153,7 +153,7 @@ unsigned char pnd_notify_rediscover_p ( pnd_notify_handle h ) { return ( 0 ); // nothing, or overflow, or .. whatever. } - unsigned int i; + unsigned int i = 0; struct inotify_event *e; while ( i < actuallen ) {