diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-08-31 23:01:28 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-08-31 23:01:28 +0000 |
commit | a20aa42ac40f04d2fd7d9cbee3cb55d5cd57d96b (patch) | |
tree | 1410535aae2581a2afc82a207f89ec923657be58 | |
parent | e92ee12893ca6320f5331384b2c2e8560ca9c88a (diff) | |
download | rsync-a20aa42ac40f04d2fd7d9cbee3cb55d5cd57d96b.tar.gz |
a simple fix to the memory problems with the string pool patch. The
string pools conflict with the lastdir memory saving tricks.
-rw-r--r-- | flist.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -534,7 +534,7 @@ struct file_struct *make_file(int f, char *fname, struct string_area **ap, if (lastdir && strcmp(fname, lastdir)==0) { file->dirname = lastdir; } else { - file->dirname = STRDUP(ap, fname); + file->dirname = strdup(fname); lastdir = file->dirname; } file->basename = STRDUP(ap, p+1); @@ -579,7 +579,7 @@ struct file_struct *make_file(int f, char *fname, struct string_area **ap, if (lastdir && strcmp(lastdir, flist_dir)==0) { file->basedir = lastdir; } else { - file->basedir = STRDUP(ap, flist_dir); + file->basedir = strdup(flist_dir); lastdir = file->basedir; } } else { |