Fix a bug about handling loader info 87/198887/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 31 Jan 2019 00:21:47 +0000 (09:21 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 31 Jan 2019 00:27:44 +0000 (09:27 +0900)
If there is a loader that has not been used even once, it can be executed
with the wrong loader at re-run. Because, the default value of the type
is zero and the first loader is also zero.
This patch changes the reference value.

Change-Id: I2df4d632cb1e8a3268ef0edf53a65b8cfe475513
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
inc/launchpad.h

index 7c2cae8..b5a11db 100644 (file)
@@ -51,7 +51,7 @@ typedef struct {
 
 enum LAUNCHPAD_TYPE {
        LAUNCHPAD_TYPE_UNSUPPORTED = -1,
-       LAUNCHPAD_TYPE_USER,
+       LAUNCHPAD_TYPE_USER = 1,
        LAUNCHPAD_TYPE_DYNAMIC = 100,
        LAUNCHPAD_TYPE_MAX
 };