From: hyunuktak Date: Tue, 23 Jan 2018 07:08:42 +0000 (+0900) Subject: Fixed uninitialized scalar variable X-Git-Tag: accepted/tizen/unified/20180125.060648^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eda600136ecca0d4cc9cffefb90dc7d96df6cd2c;p=platform%2Fupstream%2Fconnman.git Fixed uninitialized scalar variable Change-Id: Ia285faae7af652612fadbe95f0863bc315d429a6 --- 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)