Only merge overrides if the caller specifies override searchpath
authorskeezix <skeezix@flotsam-vm.(none)>
Sat, 6 Mar 2010 04:31:05 +0000 (23:31 -0500)
committerskeezix <skeezix@flotsam-vm.(none)>
Sat, 6 Mar 2010 04:31:05 +0000 (23:31 -0500)
lib/pnd_discovery.c

index d32a591..4087086 100644 (file)
@@ -173,7 +173,9 @@ static int pnd_disco_callback ( const char *fpath, const struct stat *sb,
     }
 
     // look for any overrides, if requested
-    pnd_pxml_merge_override ( pxmlh, disco_overrides );
+    if ( disco_overrides ) {
+      pnd_pxml_merge_override ( pxmlh, disco_overrides );
+    }
 
     // check for validity and add to resultset if it looks executable
     if ( pnd_is_pxml_valid_app ( pxmlh ) ) {