[IOT-2883] SVR DB editor is broken in 1.3-rel 07/23107/8
authorVadym Riznyk <v.riznyk@samsung.com>
Thu, 9 Nov 2017 15:52:39 +0000 (17:52 +0200)
committerRandeep Singh <randeep.s@samsung.com>
Wed, 22 Nov 2017 04:14:36 +0000 (04:14 +0000)
Adding InitPstatResourceToDefault() to svrdbeditor,
for initialize gPstat and correctly get dos.state

Change-Id: I5eefd50d6dcfcc35fd20ffd3e6e147acbf924e45
Signed-off-by: Vadym Riznyk <v.riznyk@samsung.com>
resource/csdk/security/tool/svrdbeditor_src/svrdbeditor.c

index 75ee66b..f515633 100644 (file)
@@ -31,6 +31,7 @@
 #include "svrdbeditorcred.h"
 #include "svrdbeditordoxm.h"
 #include "svrdbeditorpstat.h"
+#include "pstatresource.h"
 
 static bool g_allowedEditMenu[SVR_EDIT_IDX_SIZE] = {false/*unused*/, false, false, false, false};
 static char g_svrDbPath[SVR_DB_PATH_LENGTH];
@@ -98,6 +99,9 @@ static int MainOperation(const char *svrpath)
         PRINT_ERR("OCRegisterPersistentStorageHandler : %d", ocResult);
         return -1;
     }
+
+    InitPstatResourceToDefault();
+
     RefreshACL();
     RefreshCred();
     RefreshDoxm();