Fix static analysis 06/314306/1
authorInkyun Kil <inkyun.kil@samsung.com>
Wed, 10 Jul 2024 04:54:02 +0000 (13:54 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Wed, 10 Jul 2024 04:54:02 +0000 (13:54 +0900)
- LIB.INSECURE_STRNCMP

Change-Id: Idaea85bfb404f83a4b31f53a169dcf682b276697
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/modules/dbus_event/dbus_event_module.cc

index f4666f64a8900b140af38aae256835c3aa1990aa..04d19dc1794fb8b1d8a4f79ce581e998c1fe3903 100644 (file)
@@ -1320,7 +1320,7 @@ int DbusEventModule::PkgmgrEventCb(uid_t target_uid, int req_id,
   _D("target_uid(%d), req_id(%d), pkg_type(%s), pkgid(%s), key(%s), val(%s)",
     target_uid, req_id, pkg_type, pkgid, key, val);
 
-  if (strncmp(key, "start", strlen(key)) == 0) {
+  if (strcmp(key, "start") == 0) {
     if (strcmp(val, "install") == 0) {
       _D("install start");
       obj->pkg_event_type_ = INSTALL;