Don't warn about [PrepopulateList] when reading capture config
authorEric Biggers <ebiggers3@gmail.com>
Thu, 24 Apr 2014 18:23:46 +0000 (13:23 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 24 Apr 2014 18:23:46 +0000 (13:23 -0500)
src/capture_common.c

index 00f8eab..c74c94e 100644 (file)
@@ -109,11 +109,14 @@ do_read_capture_config_file(const tchar *config_file, const void *buf,
                            size_t bufsize, struct capture_config *config)
 {
        int ret;
+       STRING_SET(prepopulate_pats);
        struct text_file_section sections[] = {
                {T("ExclusionList"),
                        &config->exclusion_pats},
                {T("ExclusionException"),
                        &config->exclusion_exception_pats},
+               {T("PrepopulateList"),
+                       &prepopulate_pats},
        };
        void *mem;
 
@@ -123,6 +126,8 @@ do_read_capture_config_file(const tchar *config_file, const void *buf,
        if (ret)
                return ret;
 
+       FREE(prepopulate_pats.strings);
+
        config->buf = mem;
        return 0;
 }