summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhyunuktak <hyunuk.tak@samsung.com>2018-01-23 07:08:42 (GMT)
committertaesub kim <taesub.kim@samsung.com>2018-01-23 08:02:32 (GMT)
commiteda600136ecca0d4cc9cffefb90dc7d96df6cd2c (patch)
tree2f305f8b485b7fdb6333c2081a580534faaa5566
parent30602f521a85820a9f6b7ac04876400e00c68b15 (diff)
downloadconnman-eda600136ecca0d4cc9cffefb90dc7d96df6cd2c.zip
connman-eda600136ecca0d4cc9cffefb90dc7d96df6cd2c.tar.gz
connman-eda600136ecca0d4cc9cffefb90dc7d96df6cd2c.tar.bz2
Fixed uninitialized scalar variablerefs/changes/84/167984/1
Change-Id: Ia285faae7af652612fadbe95f0863bc315d429a6
-rwxr-xr-xsrc/service.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index d0543ae..9f6df41 100755
--- a/src/service.c
+++ b/src/service.c
@@ -4096,6 +4096,7 @@ int __connman_service_set_passphrase(struct connman_service *service,
/* The encrypted passphrase is used here
* and validation is done by net-config before being encrypted.
*/
+ err = 0;
if (service->security != CONNMAN_SERVICE_SECURITY_PSK &&
service->security != CONNMAN_SERVICE_SECURITY_RSN &&
service->security != CONNMAN_SERVICE_SECURITY_WEP)