From: Thomas Roessler Date: Wed, 1 May 2002 23:20:56 +0000 (+0000) Subject: Give all the warnings at once. X-Git-Tag: mutt-1-5-1-rel~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9752ffa9971ac92bb414011c99e05e3b038354d5;p=mutt Give all the warnings at once. --- 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