diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-21 12:10:55 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-21 12:10:55 +0100 |
commit | d2e7105fa3fa696c51965f5e186d64a91416af63 (patch) | |
tree | f7ee83898b248f547a729131648519a5d578839f /sal/osl/unx/process.cxx | |
parent | 2d9cf432f683cea56ff3dcb7298098b026eed2d7 (diff) |
cid#1209049: Unchecked return value
Change-Id: I7422cb010c38de34a7effa6124c5146f70419f79
Diffstat (limited to 'sal/osl/unx/process.cxx')
-rw-r--r-- | sal/osl/unx/process.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sal/osl/unx/process.cxx b/sal/osl/unx/process.cxx index 7355ac97a57d..8030664d10e1 100644 --- a/sal/osl/unx/process.cxx +++ b/sal/osl/unx/process.cxx @@ -472,7 +472,15 @@ oslProcessError SAL_CALL osl_executeProcess_WithRedirectedIO( char szWorkDir[PATH_MAX] = ""; if ( ustrWorkDir != 0 && ustrWorkDir->length ) { - FileURLToPath( szWorkDir, PATH_MAX, ustrWorkDir ); + oslFileError e = FileURLToPath( szWorkDir, PATH_MAX, ustrWorkDir ); + if (e != osl_File_E_None) + { + SAL_INFO( + "sal.osl", + "FileURLToPath(" << rtl::OUString::unacquired(&ustrWorkDir) + << ") failed with " << e); + return osl_Process_E_Unknown; + } pszWorkDir = szWorkDir; } |