summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-07 17:17:10 +0000
committerivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-07 17:17:10 +0000
commit10a128ac7b48669dbe96db4efcc2addf6d43c8d1 (patch)
tree3b9789c280662c829375bfabce6f2b9689860460 /TOOLS
parent0600d0b11710c654939de70d70dc97ccde4e3e95 (diff)
downloadmpv-10a128ac7b48669dbe96db4efcc2addf6d43c8d1.tar.bz2
mpv-10a128ac7b48669dbe96db4efcc2addf6d43c8d1.tar.xz
do not run stupid code checks if chfilelist is empty
(i.e. it is run on non-c code only) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23251 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/checktree.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/TOOLS/checktree.sh b/TOOLS/checktree.sh
index 2e61659612..d03232bcd7 100755
--- a/TOOLS/checktree.sh
+++ b/TOOLS/checktree.sh
@@ -303,6 +303,7 @@ if [ "$_stupid" = "yes" ]; then
# avoid false-positives in xpm files, docs, etc, only check .c and .h files
chfilelist=`echo $filelist | tr ' ' '\n' | grep "[\.][ch]$"`
+ if [ -n "$chfilelist" ]; then
for i in calloc malloc realloc memalign av_malloc av_mallocz faad_malloc \
lzo_malloc safe_malloc mpeg2_malloc _ogg_malloc; do
printhead "--> casting of void* $i()"
@@ -337,6 +338,7 @@ if [ "$_stupid" = "yes" ]; then
printhead "--> usage of -0"
grep $_grepopts "[a-zA-Z0-9)]\+[ ]*-[ ]*0[^.0-9xa-fA-F_]" $chfilelist
+ fi
fi
# -----------------------------------------------------------------------------