git.samba.org
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make my_alloc(NULL) use malloc instead of calloc.
[rsync.git]
/
ifuncs.h
diff --git
a/ifuncs.h
b/ifuncs.h
index b94905886fa47d197d20d0183e14e4c8a012eb67..4037639b26a46495fdaaca05039b5c56c461eea8 100644
(file)
--- a/
ifuncs.h
+++ b/
ifuncs.h
@@
-105,7
+105,7
@@
free_stat_x(stat_x *sx_p)
static inline char *my_strdup(const char *str, const char *file, int line)
{
int len = strlen(str)+1;
- char *buf = my_alloc(
do_malloc
, len, 1, file, line);
+ char *buf = my_alloc(
NULL
, len, 1, file, line);
memcpy(buf, str, len);
return buf;
}