]> git.openpandora.org Git - pandora-libraries.git/commitdiff
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 64c9ade2b92d8302585812d77d03b7b06b0c582c..aece00de6c7caee4ce0c2b66698388d039cb03e1 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 7dd135b5b04363b51d15a6faf8fea57c458b88bc..55127b8d1621a80e513c3ce14966cd0fe535f4be 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 ) {