Fix wrong function call 35/289935/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 16 Mar 2023 01:11:07 +0000 (01:11 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 16 Mar 2023 01:11:07 +0000 (01:11 +0000)
This patch fixes the wrong argument. The argument should start
after the key string.

Change-Id: Ibb63faa4b0fc469c8ab1e8798f2c4d6ca00c920f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/src/loader_info.c

index 028fd51c0fe54eb01e2b20cd81d4c4675ccfb336..619cb5259adf09494ddf1c66b0ec0eaad031878e 100644 (file)
@@ -334,7 +334,7 @@ static GList *__parse_file(GList *list, const char *path)
                        else if (cur_info->sched_priority > 19)
                                cur_info->sched_priority = 19;
                } else if (strcasecmp(TAG_CONDITION_PATH_EXISTS, tok1) == 0) {
-                       __parse_condition_path_exists(cur_info, buf);
+                       __parse_condition_path_exists(cur_info, &buf[strlen(tok1)]);
                }
        }