projects
/
platform
/
core
/
system
/
peripheral-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6251be1
)
privilege: initialize variables before using
22/183922/1
author
Konrad Kuchciak
<k.kuchciak@samsung.com>
Wed, 11 Jul 2018 08:47:40 +0000
(10:47 +0200)
committer
Konrad Kuchciak
<k.kuchciak@samsung.com>
Thu, 12 Jul 2018 09:24:00 +0000
(11:24 +0200)
This fixed issues reported by Coverity bot about not checking
values returned by cynara_creds_gdbus_get_client() and
cynara_creds_gdbus_get_user()
Change-Id: I65ae1c2160129d45bb159bc6fc79b622b38390f8
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
src/util/peripheral_privilege.c
patch
|
blob
|
history
diff --git
a/src/util/peripheral_privilege.c
b/src/util/peripheral_privilege.c
index ce6b5f92641055d5b2c949cebfeb9a67c853e532..335f9b991e5b3e1a1e3cde225d3a6d00af990cda 100644
(file)
--- a/
src/util/peripheral_privilege.c
+++ b/
src/util/peripheral_privilege.c
@@
-68,9
+68,9
@@
int peripheral_privilege_check(GDBusMethodInvocation *invocation, GDBusConnectio
int ret;
int pid;
const char *sender;
- char *session;
- char *client;
- char *user;
+ char *session
= NULL
;
+ char *client
= NULL
;
+ char *user
= NULL
;
sender = g_dbus_method_invocation_get_sender(invocation);