aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/configuration.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e4c317..3579400 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
0.9.7h Nov 23, 2003
* updated FAQ
* updated example dropline exclude regex (Francesco Gigli <jaramir@aruba.it>)
+ * initialize global_config->exclude_list if EXCLUDE commented out (Francesco Gigli <jaramir@aruba.it>)
0.9.7g Nov 23, 2003
* updated break_down_pkg_version and cmp_pkg_versions for improved version checking
diff --git a/src/configuration.c b/src/configuration.c
index be067d4..254f470 100644
--- a/src/configuration.c
+++ b/src/configuration.c
@@ -106,6 +106,11 @@ rc_config *read_rc_config(const char *file_name){
fprintf(stderr,_("WORKINGDIR directive not set within %s.\n"),file_name);
return NULL;
}
+ if( global_config->exclude_list == NULL ){
+ /* at least initialize */
+ global_config->exclude_list = malloc( sizeof *global_config->exclude_list );
+ global_config->exclude_list->count = 0;
+ }
if( global_config->sources.count == 0 ){
fprintf(stderr,_("SOURCE directive not set within %s.\n"),file_name);
return NULL;