projects
/
platform
/
core
/
uifw
/
capi-ui-sticker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1017134
)
Fix issue detected by static analysis tool
46/285946/2
author
InHong Han
<inhong1.han@samsung.com>
Fri, 23 Dec 2022 02:05:53 +0000
(11:05 +0900)
committer
InHong Han
<inhong1.han@samsung.com>
Mon, 26 Dec 2022 05:32:26 +0000
(14:32 +0900)
Change-Id: I5c7132c5aaa0a67fabac50e4fe8463cceaafec5a
server/stickerd_db_manager.c
patch
|
blob
|
history
diff --git
a/server/stickerd_db_manager.c
b/server/stickerd_db_manager.c
index
7240d04
..
5cbe566
100644
(file)
--- a/
server/stickerd_db_manager.c
+++ b/
server/stickerd_db_manager.c
@@
-504,7
+504,7
@@
int stickerd_db_delete_sticker_info(int record_id)
uri = sqlite3_column_text(stmt, 1);
thumbnail = sqlite3_column_text(stmt, 2);
- if (uri_type == 1 && unlink((const char *)uri) == -1)
+ if (uri_type == 1 && u
ri && u
nlink((const char *)uri) == -1)
LOGE("fail to delete sticker file");
if (thumbnail && unlink((const char *)thumbnail) == -1)