diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-05-28 06:40:25 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-05-28 06:40:25 +0000 |
commit | fe8c0a9824bf990ae3ff692d25105dd2c9f0ebf4 (patch) | |
tree | 4dc18577f4bf9c854981892aecbf50227ab57d36 /exclude.c | |
parent | 6cdc6b13443c7b760d136bafd5253ef1ddf7f3cd (diff) | |
download | rsync-fe8c0a9824bf990ae3ff692d25105dd2c9f0ebf4.tar.gz |
use Realloc instead of realloc
Diffstat (limited to 'exclude.c')
-rw-r--r-- | exclude.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -146,11 +146,7 @@ void add_exclude_list(char *pattern,struct exclude_struct ***list, int include) return; } - if (!*list) { - *list = (struct exclude_struct **)malloc(sizeof(struct exclude_struct *)*2); - } else { - *list = (struct exclude_struct **)realloc(*list,sizeof(struct exclude_struct *)*(len+2)); - } + *list = (struct exclude_struct **)Realloc(*list,sizeof(struct exclude_struct *)*(len+2)); if (!*list || !((*list)[len] = make_exclude(pattern, include))) out_of_memory("add_exclude"); |