projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Make -s flag to show-diff a no-op.
[git.git]
/
show-files.c
diff --git
a/show-files.c
b/show-files.c
index
b53ab10
..
afeb635
100644
(file)
--- a/
show-files.c
+++ b/
show-files.c
@@
-30,9
+30,9
@@
static void add_name(const char *pathname, int len)
if (nr_dir == dir_alloc) {
dir_alloc = alloc_nr(dir_alloc);
if (nr_dir == dir_alloc) {
dir_alloc = alloc_nr(dir_alloc);
- dir = realloc(dir, dir_alloc*sizeof(char *));
+ dir =
x
realloc(dir, dir_alloc*sizeof(char *));
}
}
- name = malloc(len + 1);
+ name =
x
malloc(len + 1);
memcpy(name, pathname, len + 1);
dir[nr_dir++] = name;
}
memcpy(name, pathname, len + 1);
dir[nr_dir++] = name;
}