Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/sanity' into maint
[gitweb.git]
/
shallow.c
diff --git
a/shallow.c
b/shallow.c
index cdd07751461e69291588dee801c3563644cb1107..f5e67204a4084ff79beec0d5a5dd0fb06966cc3f 100644
(file)
--- a/
shallow.c
+++ b/
shallow.c
@@
-22,7
+22,7
@@
void set_alternate_shallow_file(const char *path, int override)
if (alternate_shallow_file && !override)
return;
free(alternate_shallow_file);
- alternate_shallow_file =
path ? xstrdup(path) : NULL
;
+ alternate_shallow_file =
xstrdup_or_null(path)
;
}
int register_shallow(const unsigned char *sha1)