]> granicus.if.org Git - mutt/commitdiff
Give all the warnings at once.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 1 May 2002 23:20:56 +0000 (23:20 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 1 May 2002 23:20:56 +0000 (23:20 +0000)
check_sec.sh

index 8c405f70e9e24a58df1d92c7184e19ffe9464f23..5ae2019fe2ceffcdbbb1d0fe5a0fcc08a2292895 100755 (executable)
@@ -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