X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=blobdiff_plain;f=scilab%2Fmodules%2Ffileio%2Fsci_gateway%2Fcpp%2Fsci_get_absolute_file_path.cpp;h=1999111ce0ffe83e6ea4c8f29bb461166e5d70e3;hp=b35fc211d20016fb7e07419d66889d777e810738;hb=aee5a995c4d80cf0681285ae8aace3c83b9ef350;hpb=73996f9540ffb50b139ae6949c2514fb927b019f diff --git a/scilab/modules/fileio/sci_gateway/cpp/sci_get_absolute_file_path.cpp b/scilab/modules/fileio/sci_gateway/cpp/sci_get_absolute_file_path.cpp index b35fc21..1999111 100644 --- a/scilab/modules/fileio/sci_gateway/cpp/sci_get_absolute_file_path.cpp +++ b/scilab/modules/fileio/sci_gateway/cpp/sci_get_absolute_file_path.cpp @@ -79,14 +79,9 @@ types::Function::ReturnValue sci_get_absolute_file_path(types::typed_list &in, i freeArrayOfWideString(wcsFilesOpened, FileManager::getOpenedCount()); - if (wcsTemp == NULL) - { - char* pstFile = wide_string_to_UTF8(wcsFileName); - Scierror(999, _("%s: The file %s is not opened in scilab.\n"), "get_absolute_file_path", pstFile); - FREE(pstFile); - return types::Function::Error; - } - - return types::Function::OK; + char* pstFile = wide_string_to_UTF8(wcsFileName); + Scierror(999, _("%s: The file %s is not opened in scilab.\n"), "get_absolute_file_path", pstFile); + FREE(pstFile); + return types::Function::Error; } /*--------------------------------------------------------------------------*/