projects
/
platform
/
core
/
api
/
notification.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee31e38
)
Fix db recovery callback error
46/165446/1
author
Seungha Son
<seungha.son@samsung.com>
Fri, 29 Dec 2017 03:50:29 +0000
(12:50 +0900)
committer
Seungha Son
<seungha.son@samsung.com>
Fri, 29 Dec 2017 03:51:13 +0000
(12:51 +0900)
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I300fb0520ff61847c3ece112ff1dc76fff39b5a3
src/notification_db.c
patch
|
blob
|
history
diff --git
a/src/notification_db.c
b/src/notification_db.c
index
5f9a925
..
aed4104
100755
(executable)
--- a/
src/notification_db.c
+++ b/
src/notification_db.c
@@
-31,7
+31,9
@@
static bool is_db_corrupted = false;
static int __check_integrity_cb(void *pid, int argc, char **argv, char **notUsed)
{
- if (!strcmp(argv[0], "ok")) {
+ char *check_str = "ok";
+
+ if (strncmp(argv[0], check_str, strlen(check_str))) {
ERR("db integrity result : %s" , argv[0]);
is_db_corrupted = true;
return -1;