aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-01-12 22:14:13 +0000
committerJason Woodward2005-01-12 22:14:13 +0000
commitff578c3587ed550c48d7fa8a581966d303768584 (patch)
tree2548b64f3307a9543040e79c584acc81ba63eb2a /src
parent71f628282542f41bbc26962ee72b0ef08e2befef (diff)
downloadslapt-get-ff578c3587ed550c48d7fa8a581966d303768584.tar.gz
fixed segfault when cleaning up if EXCLUDE is not defined within slapt-getrc
Diffstat (limited to 'src')
-rw-r--r--src/configuration.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/configuration.c b/src/configuration.c
index 0fb9d69..e51ff4d 100644
--- a/src/configuration.c
+++ b/src/configuration.c
@@ -120,6 +120,7 @@ rc_config *read_rc_config(const char *file_name){
if( global_config->exclude_list == NULL ){
/* at least initialize */
global_config->exclude_list = slapt_malloc( sizeof *global_config->exclude_list );
+ global_config->exclude_list->excludes = slapt_malloc( sizeof *global_config->exclude_list->excludes );
global_config->exclude_list->count = 0;
}
if( global_config->sources.count == 0 ){