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
Changed exclude/include matching so that normally wildcards will stop at
[rsync/rsync.git]
/
util.c
diff --git
a/util.c
b/util.c
index
cadf3eb
..
16d8f6c
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-638,6
+638,8
@@
char *push_dir(char *dir, int save)
getcwd(curr_dir, sizeof(curr_dir)-1);
}
getcwd(curr_dir, sizeof(curr_dir)-1);
}
+ if (!dir) return NULL; /* this call was probably just to initialize */
+
if (chdir(dir)) return NULL;
if (save) {
if (chdir(dir)) return NULL;
if (save) {