diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-10-05 12:49:28 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-10-05 13:26:09 -0500 |
commit | c6b619e1e82c3cfadd9ce6f9f85f4054959ecffd (patch) | |
tree | 0f65c32398acba27999b24d311e7f618ac236ee7 /vcl | |
parent | 58192e3f7529af877b935f2cd390b8ddaf00459f (diff) |
coverity#1240252 Unchecked return value
Change-Id: I472f9fc9cb7b5d2e7030cc4272e29b955931ee88
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/print/genprnpsp.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
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 ) { |