projects
/
platform
/
core
/
api
/
multi-device-group.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cf6c6e
)
Make 0 length group name not to be made.
author
saerome.kim
<saerome.kim@samsung.com>
Wed, 9 May 2018 11:13:36 +0000
(20:13 +0900)
committer
saerome.kim
<saerome.kim@samsung.com>
Mon, 2 Jul 2018 10:40:01 +0000
(19:40 +0900)
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
src/mdg.c
[changed mode: 0755->0644]
patch
|
blob
|
history
diff --git
a/src/mdg.c
b/src/mdg.c
old mode 100755
(executable)
new mode 100644
(file)
index
482c4f1
..
a887ffa
--- a/
src/mdg.c
+++ b/
src/mdg.c
@@
-125,6
+125,8
@@
EXPORT_API int mdg_group_create(mdg_h handle, char *group_name)
mdg_manager_s *_handle = handle;
mdg_check_null_ret_error("handle", handle, MDG_ERROR_INVALID_PARAMETER);
+ if (0 == strlen(group_name))
+ return MDG_ERROR_INVALID_PARAMETER;
/* create group to daemon using gdbus */
group_call_create_sync(_handle->group_proxy, group_name, &ret, NULL, &error);