From c6b619e1e82c3cfadd9ce6f9f85f4054959ecffd Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sun, 5 Oct 2014 12:49:28 -0500 Subject: coverity#1240252 Unchecked return value Change-Id: I472f9fc9cb7b5d2e7030cc4272e29b955931ee88 --- vcl/generic/print/genprnpsp.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vcl/generic') diff --git a/vcl/generic/print/genprnpsp.cxx b/vcl/generic/print/genprnpsp.cxx index 3b11ec6e66b2..d215a1de9750 100644 --- a/vcl/generic/print/genprnpsp.cxx +++ b/vcl/generic/print/genprnpsp.cxx @@ -299,9 +299,11 @@ static bool passFileToCommandLine( const OUString& rFilename, const OUString& rC close( fd[ 1 ] ); } int status = 0; - waitpid( pid, &status, 0 ); - if( ! status ) - bSuccess = true; + if(waitpid( pid, &status, 0 ) != -1) + { + if( ! status ) + bSuccess = true; + } } else if( ! pid ) { -- cgit