aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2004-10-20 17:34:54 +0000
committerJason Woodward2004-10-20 17:34:54 +0000
commita6660d117aa8bbc7f71257a6ec9a985224b62462 (patch)
treed8452e0852622765ca5e3c9d66c18afa43a8fa03 /src
parentf777afd0cc7440e62cd00ad0f66042ef219f0987 (diff)
downloadslapt-get-a6660d117aa8bbc7f71257a6ec9a985224b62462.tar.gz
tightened scope on variables
Diffstat (limited to 'src')
-rw-r--r--src/configuration.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/configuration.c b/src/configuration.c
index 9c170fa..157e652 100644
--- a/src/configuration.c
+++ b/src/configuration.c
@@ -171,11 +171,8 @@ void free_rc_config(rc_config *global_config){
}
static struct exclude_list *parse_exclude(char *line){
- char *pointer = NULL;
- char *buffer = NULL;
- int position = 0;
- char **realloc_tmp;
struct exclude_list *list;
+ int position = 0;
list = malloc( sizeof *list );
if( list == NULL ){
@@ -193,6 +190,10 @@ static struct exclude_list *parse_exclude(char *line){
while( position < (int) strlen(line) ){
+ char **realloc_tmp;
+ char *buffer = NULL;
+ char *pointer = NULL;
+
if( strstr(line + position,",") == NULL ){
pointer = line + position;