From b016438c08877cb3b24808d260397a8aa8fe49ce Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 21 Jun 2006 10:48:36 +1000 Subject: Update input validation. Always use the magic CHECK macro, which prints an error message including instructions on how to report this problem. darcs-hash:20060621004836-ac50b-a47f296634eda0c469eb39034603015b1ad7ab5c.gz --- exec.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'exec.c') diff --git a/exec.c b/exec.c index 66f7e1d5..ee0d6b80 100644 --- a/exec.c +++ b/exec.c @@ -652,12 +652,8 @@ void exec( job_t *j ) */ int exec_error=0; - if( !j ) - { - debug( 0, L"%s called with null input", __func__ ); - return; - } - + CHECK( j, ); + if( no_exec ) return; -- cgit v1.2.3