projects
/
platform
/
core
/
api
/
wifi-aware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40838f4
)
Check if output parameter is NULL
09/236809/1
author
Cheoleun Moon
<chleun.moon@samsung.com>
Mon, 22 Jun 2020 08:11:35 +0000
(17:11 +0900)
committer
Cheoleun Moon
<chleun.moon@samsung.com>
Mon, 22 Jun 2020 08:11:43 +0000
(17:11 +0900)
Change-Id: Ic6c9061cd983dd76ae992173098020a8afea6b74
src/wifi-aware.c
patch
|
blob
|
history
diff --git
a/src/wifi-aware.c
b/src/wifi-aware.c
index
7316feb
..
dc9b930
100644
(file)
--- a/
src/wifi-aware.c
+++ b/
src/wifi-aware.c
@@
-775,6
+775,7
@@
int wifi_aware_data_path_get_peer_port(wifi_aware_data_path_h data_path, int* po
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
RET_VAL_IF(!_wifi_aware_is_initialized(), WIFI_AWARE_ERROR_NOT_INITIALIZED, "Not initialized");
RET_VAL_IF(data_path == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "Data path is NULL");
+ RET_VAL_IF(port == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "port is NULL");
return _wifi_aware_data_path_get_peer_port(data_path, port);
}