diff options
author | Junio C Hamano <junkio@cox.net> | 2006-08-08 15:42:20 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-08 15:42:20 -0700 |
commit | 102cb08521df5f33b30c0ef41a1078a61e593943 (patch) | |
tree | 907c6791951e3ae9bae1e0c88dba505a6bbac810 /git-compat-util.h | |
parent | efffea033457eedb90ad63596687564f797f12de (diff) | |
parent | 6c8d06aff107aa2132648d682a278111c1d08565 (diff) | |
download | git-102cb08521df5f33b30c0ef41a1078a61e593943.tar.gz |
Merge branch 'master' into mk/rename
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 93f558056d..3bcf5b13f2 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -91,6 +91,9 @@ static inline void *xmalloc(size_t size) ret = malloc(1); if (!ret) die("Out of memory, malloc failed"); +#ifdef XMALLOC_POISON + memset(ret, 0xA5, size); +#endif return ret; } |