Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
87678ce
)
Make sure that the hlink node->data allocation doesn't fail.
author
Wayne Davison
<wayned@samba.org>
Fri, 8 Aug 2008 14:48:41 +0000
(07:48 -0700)
committer
Wayne Davison
<wayned@samba.org>
Fri, 8 Aug 2008 14:48:41 +0000
(07:48 -0700)
hlink.c
patch
|
blob
|
blame
|
history
diff --git
a/hlink.c
b/hlink.c
index
5c61170
..
fede153
100644
(file)
--- a/
hlink.c
+++ b/
hlink.c
@@
-124,7
+124,8
@@
static void match_gnums(int32 *ndx_list, int ndx_count)
if (inc_recurse) {
node = hashtable_find(prior_hlinks, gnum, 1);
if (!node->data) {
if (inc_recurse) {
node = hashtable_find(prior_hlinks, gnum, 1);
if (!node->data) {
- node->data = new_array0(char, 5);
+ if (!(node->data = new_array0(char, 5)))
+ out_of_memory("match_gnums");
assert(gnum >= hlink_flist->ndx_start);
file->flags |= FLAG_HLINK_FIRST;
prev = -1;
assert(gnum >= hlink_flist->ndx_start);
file->flags |= FLAG_HLINK_FIRST;
prev = -1;