mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(sc_cast_of_x_alloc_return_value): Also check for alloca casts.
This commit is contained in:
1 parent
3d56cf5c1d
commit
c0db07f7f9
1 file changed
+2
-1
+2
-1
@@ -107,7 +107,8 @@ sc_cast_of_argument_to_free:
|
||||
|
||||
sc_cast_of_x_alloc_return_value:
|
||||
@grep -E --exclude=$(srcdir)/lib/regex.c \
|
||||
'\*\) *x(m|c|re)alloc\>' $(srcdir)/{lib,src}/*.[chy] && \
|
||||
'\*\) *(alloca|x(m|c|re)alloc)\>' \
|
||||
$(srcdir)/{lib,src}/*.[chy] && \
|
||||
{ echo '$(ME): don'\''t cast x*alloc return value' 1>&2; \
|
||||
exit 1; } || :
|
||||
|
||||
|
||||
Reference in new issue
Block a user