diff options
author | René Scharfe <l.s.r@web.de> | 2017-02-25 11:30:03 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-27 11:02:05 -0800 |
commit | 3f64699ffde6cd2152db2106505a2310601a207f (patch) | |
tree | 4642e6ba0aaaa6d6ba8c639a91d91187794fbb0f /reachable.c | |
parent | Git 2.11.1 (diff) | |
download | tgif-3f64699ffde6cd2152db2106505a2310601a207f.tar.xz |
cocci: use ALLOC_ARRAY
Add a semantic patch for using ALLOC_ARRAY to allocate arrays and apply
the transformation on the current source tree. The macro checks for
multiplication overflow and infers the element size automatically; the
result is shorter and safer code.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reachable.c')
0 files changed, 0 insertions, 0 deletions