summaryrefslogtreecommitdiff
path: root/exclude.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-05-28 06:40:25 +0000
committerAndrew Tridgell <tridge@samba.org>1998-05-28 06:40:25 +0000
commitfe8c0a9824bf990ae3ff692d25105dd2c9f0ebf4 (patch)
tree4dc18577f4bf9c854981892aecbf50227ab57d36 /exclude.c
parent6cdc6b13443c7b760d136bafd5253ef1ddf7f3cd (diff)
downloadrsync-fe8c0a9824bf990ae3ff692d25105dd2c9f0ebf4.tar.gz
use Realloc instead of realloc
Diffstat (limited to 'exclude.c')
-rw-r--r--exclude.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/exclude.c b/exclude.c
index ab01234c..d25adb34 100644
--- a/exclude.c
+++ b/exclude.c
@@ -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");