projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6906a6b
)
Initialized previously uninitialized local vairable
44/41944/1
author
Anchit Narang
<anchit.n@samsung.com>
Fri, 19 Jun 2015 08:34:33 +0000
(14:04 +0530)
committer
Anchit Narang
<anchit.n@samsung.com>
Fri, 19 Jun 2015 08:47:53 +0000
(14:17 +0530)
variable ret was uninitialed in function _bt_core_handle_power_saving_mode_noti.
If ENABLE_TIZEN_2_4 is not defined it will still have garbage value.
Used without initializing in check if (ret < 0)
Change-Id: Idf5c04c91c3c9c83c470479cc93e827bedc49435
Signed-off-by: Anchit Narang <anchit.n@samsung.com>
bt-core/bt-core-noti-handler.c
patch
|
blob
|
history
diff --git
a/bt-core/bt-core-noti-handler.c
b/bt-core/bt-core-noti-handler.c
index
467bb8b
..
3c5e618
100644
(file)
--- a/
bt-core/bt-core-noti-handler.c
+++ b/
bt-core/bt-core-noti-handler.c
@@
-309,7
+309,7
@@
void _bt_core_handle_flight_mode_noti(void)
void _bt_core_handle_power_saving_mode_noti(void)
{
#ifndef TIZEN_WEARABLE
- int ret;
+ int ret
= 0
;
BT_DBG("+");
#ifdef ENABLE_TIZEN_2_4