settings: Make loading a NULL or empty pattern a (nop-)success
authorMartin Willi <martin@revosec.ch>
Mon, 25 Aug 2014 08:36:01 +0000 (10:36 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 22 Sep 2014 11:40:39 +0000 (13:40 +0200)
src/libstrongswan/settings/settings.c

index e235e3c..acf9160 100644 (file)
@@ -856,7 +856,7 @@ static bool load_files_internal(private_settings_t *this, section_t *parent,
 
        if (pattern == NULL || !pattern[0])
        {       /* TODO: Clear parent if merge is FALSE? */
-               return FALSE;
+               return TRUE;
        }
 
        section = settings_section_create(NULL);