From 2f6ad40c7c627c2649012babfa09a3ae3df99fbb Mon Sep 17 00:00:00 2001 From: skeezix Date: Mon, 15 Feb 2010 09:41:47 -0500 Subject: [PATCH] Minor fixes for a couple 'uninitialized vars' that gcc here wasn't informing me of :) --- lib/pnd_conf.c | 2 +- lib/pnd_notify.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ) { -- 2.39.5