Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed a bug in the flist sending code that caused the flist sending to
[rsync/rsync.git]
/
exclude.c
diff --git
a/exclude.c
b/exclude.c
index
ab01234
..
d25adb3
100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-146,11
+146,7
@@
void add_exclude_list(char *pattern,struct exclude_struct ***list, int include)
return;
}
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");
if (!*list || !((*list)[len] = make_exclude(pattern, include)))
out_of_memory("add_exclude");