summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-10-05 12:49:28 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-10-05 13:26:09 -0500
commitc6b619e1e82c3cfadd9ce6f9f85f4054959ecffd (patch)
tree0f65c32398acba27999b24d311e7f618ac236ee7
parentAccess2Base - New TempVars collection and TempVar objects (diff)
downloadcore-c6b619e1e82c3cfadd9ce6f9f85f4054959ecffd.tar.gz
core-c6b619e1e82c3cfadd9ce6f9f85f4054959ecffd.zip
coverity#1240252 Unchecked return value
Change-Id: I472f9fc9cb7b5d2e7030cc4272e29b955931ee88
-rw-r--r--vcl/generic/print/genprnpsp.cxx8
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 )
{