From 9752ffa9971ac92bb414011c99e05e3b038354d5 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Wed, 1 May 2002 23:20:56 +0000 Subject: [PATCH] Give all the warnings at once. --- check_sec.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/check_sec.sh b/check_sec.sh index 8c405f70..5ae2019f 100755 --- a/check_sec.sh +++ b/check_sec.sh @@ -6,6 +6,8 @@ TMPFILE="`mktemp check_sec.tmp.XXXXXX`" || exit 1 +RV=0; + do_check_files () { pattern="$1" ; shift @@ -19,7 +21,7 @@ do_check_files () echo "$msg" ; cat $TMPFILE; rm -f $TMPFILE; - exit 1; + RV=1; } } @@ -38,4 +40,4 @@ do_check_files '\<(malloc|realloc|free|strdup)[ ]*\(' __MEM_CHECKED__ "Alert: U *.c imap/*.c rm -f $TMPFILE -exit 0 +exit $RV -- 2.50.1