[Libreoffice-commits] core.git: sal/osl
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Sun Jan 17 14:16:28 UTC 2021
sal/osl/unx/process.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ad55d51486264260a135b36c85973a728e006de7
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Jan 17 13:42:50 2021 +0100
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sun Jan 17 15:15:47 2021 +0100
cppcheck: zerodivcond
I don't know if it can happen or if it's a false positive
but at least, we're sure now it won't fail
Change-Id: Id4620d74c0893b308b9fb45be71ca6c425066ae4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109470
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/sal/osl/unx/process.cxx b/sal/osl/unx/process.cxx
index 861324963dec..f75534fdc311 100644
--- a/sal/osl/unx/process.cxx
+++ b/sal/osl/unx/process.cxx
@@ -1067,7 +1067,7 @@ oslProcessError SAL_CALL osl_getProcessInfo(oslProcess Process, oslProcessData F
unsigned long systemseconds;
clktck = sysconf(_SC_CLK_TCK);
- if (clktck < 0) {
+ if (clktck <= 0) {
return osl_Process_E_Unknown;
}
hz = static_cast<unsigned long>(clktck);
More information about the Libreoffice-commits
mailing list