diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-01-17 13:42:50 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-01-17 15:15:47 +0100 |
commit | ad55d51486264260a135b36c85973a728e006de7 (patch) | |
tree | 9afed3f9ee659134f6146713d79c0a0426647f54 /sal | |
parent | 56164821fb2deed9073db31c85d13a60fd08b0a4 (diff) |
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@yahoo.fr>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/process.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |