diff options
author | Daehyeon Jung <darrenh.jung@samsung.com> | 2016-06-17 14:31:11 +0900 |
---|---|---|
committer | Daehyeon Jung <darrenh.jung@samsung.com> | 2016-06-17 14:33:27 +0900 |
commit | 182ac418fa062ee2f97d4befbe1222caffca2422 (patch) | |
tree | 18ab5126cbc0e78b665820c182617edcceb5292a | |
parent | 6a3b80a9c601801efbdcf0cb898308bdb17e76de (diff) | |
download | widget-service-accepted/tizen/ivi/20160620.024547.tar.gz widget-service-accepted/tizen/ivi/20160620.024547.tar.bz2 widget-service-accepted/tizen/ivi/20160620.024547.zip |
fix uninitialized valuesubmit/tizen/20160617.084427submit/tizen/20160617.065536accepted/tizen/wearable/20160620.024526accepted/tizen/tv/20160620.024512accepted/tizen/mobile/20160620.024449accepted/tizen/ivi/20160620.024547accepted/tizen/common/20160617.122026
Change-Id: I4d28967f2da51aaacede678d91ac8df4da6a170b
-rw-r--r-- | src/widget_instance.c | 2 | ||||
-rw-r--r-- | src/widget_service.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/widget_instance.c b/src/widget_instance.c index 896f508..17cc4a0 100644 --- a/src/widget_instance.c +++ b/src/widget_instance.c @@ -389,7 +389,7 @@ static int __update_instance_info(struct _widget_instance *instance) const char insert_query[] = "INSERT INTO widget_instance(widget_id, viewer_id, content_info, instance_id, status) VALUES(?,?,?,?,?)"; const char update_query[] = "UPDATE widget_instance SET content_info=?, status=? WHERE instance_id=?"; const char delete_query[] = "DELETE FROM widget_instance WHERE instance_id=?"; - sqlite3_stmt* p_statement; + sqlite3_stmt* p_statement = NULL; struct widget_app *app = NULL; char *content = NULL; int content_len = 0; diff --git a/src/widget_service.c b/src/widget_service.c index 126a884..71042f4 100644 --- a/src/widget_service.c +++ b/src/widget_service.c @@ -66,7 +66,7 @@ static inline bool _is_widget_feature_enabled(void) static int check_privilege(const char *privilege) { - cynara *p_cynara; + cynara *p_cynara = NULL; int fd = 0; int ret = 0; |