mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-11 21:18:46 -05:00
The Coccinelle tool is an ingrained part of our build infrastructure. It is executed by our CI to detect antipatterns and is used to detect misuses of certain interfaces. It's presence in "contrib/" is thus rather misleading. Promote the configuration into the new "tools/" directory. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 lines
104 B
C
12 lines
104 B
C
int use_FREE_AND_NULL(int *v)
|
|
{
|
|
free(*v);
|
|
*v = NULL;
|
|
}
|
|
|
|
int need_no_if(int *v)
|
|
{
|
|
if (v)
|
|
free(v);
|
|
}
|