projects
/
platform
/
core
/
connectivity
/
ua-manager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Set default light threshold as 2
[platform/core/connectivity/ua-manager.git]
/
ua-daemon
/
src
/
ua-manager-core.c
diff --git
a/ua-daemon/src/ua-manager-core.c
b/ua-daemon/src/ua-manager-core.c
index
15786b7
..
6cde196
100644
(file)
--- a/
ua-daemon/src/ua-manager-core.c
+++ b/
ua-daemon/src/ua-manager-core.c
@@
-2972,7
+2972,7
@@
int _uam_core_start_active_device_scan(char *sender, unsigned int sensors, int d
}
scanner = g_malloc0(sizeof(uam_scanner_info_t));
- if (scanner) {
+ if (
!
scanner) {
UAM_ERR("Failed to allocate memory");
return UAM_ERROR_OUT_OF_MEMORY;
}