summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sal/osl/unx/file_error_transl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/osl/unx/file_error_transl.cxx b/sal/osl/unx/file_error_transl.cxx
index 10812a8245ae..54b19ce10a9f 100644
--- a/sal/osl/unx/file_error_transl.cxx
+++ b/sal/osl/unx/file_error_transl.cxx
@@ -164,9 +164,8 @@ oslFileError oslTranslateFileError(int Errno)
case ETIMEDOUT:
return osl_File_E_TIMEDOUT;
- case 0:
- assert(false);
default:
+ assert(Errno != 0);
/* FIXME translateFileError: is this alright? Or add a new one: osl_File_E_Unknown? */
return osl_File_E_invalidError;
}