Minor fixes for a couple 'uninitialized vars' that gcc here wasn't informing me of :)
authorskeezix <skeezix@flotsam-vm.(none)>
Mon, 15 Feb 2010 14:41:47 +0000 (09:41 -0500)
committerskeezix <skeezix@flotsam-vm.(none)>
Mon, 15 Feb 2010 14:41:47 +0000 (09:41 -0500)
lib/pnd_conf.c
lib/pnd_notify.c

index 64c9ade..aece00d 100644 (file)
@@ -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 );
index 7dd135b..55127b8 100644 (file)
@@ -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 ) {