summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Swierczek <t.swierczek@samsung.com>2017-09-07 09:23:35 +0200
committerTomasz Swierczek <t.swierczek@samsung.com>2017-09-07 09:25:15 +0200
commit984924a197aa032c637b1c269f24115ab47c7b6d (patch)
treeeb6402a32ce13fae551fe98bdd8f86f03cd94de4
parentc0385261b6cedc706ab83002bedd3005e4e9b97e (diff)
downloadcert-checker-submit/tizen/20170907.103704.tar.gz
cert-checker-submit/tizen/20170907.103704.tar.bz2
cert-checker-submit/tizen/20170907.103704.zip
Fix SVACE defect: improper comparison in < operator of PkgmgrEventsubmit/tizen/20170907.103704accepted/tizen/unified/20170908.220339
Change-Id: I4475dfd91a8ae0ffb734307c201927bd5d0cd2df Signed-off-by: Tomasz Swierczek <t.swierczek@samsung.com>
-rw-r--r--src/service/logic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service/logic.cpp b/src/service/logic.cpp
index d762721..ce11142 100644
--- a/src/service/logic.cpp
+++ b/src/service/logic.cpp
@@ -52,7 +52,7 @@ struct PkgmgrEvent {
{
if (uid < rhs.uid)
return true;
- else if (uid < rhs.uid)
+ else if (uid > rhs.uid)
return false;
else
return pkgid.compare(rhs.pkgid) < 0;