From 8fd2e913f04a71b9e820a088819d5b3d5205945b Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Wed, 15 Feb 2017 23:42:24 +0200 Subject: 8457 libstmf: psStmfProp and psStmfPropVal may be used uninitialized Reviewed by: Gary Mills Reviewed by: Yuri Pankov Reviewed by: Igor Kozhukhov Approved by: Robert Mustacchi --- usr/src/lib/libstmf/common/store.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr/src/lib/libstmf/common/store.c b/usr/src/lib/libstmf/common/store.c index b6eabd8715..0d3cfcba53 100644 --- a/usr/src/lib/libstmf/common/store.c +++ b/usr/src/lib/libstmf/common/store.c @@ -286,7 +286,7 @@ sigHandler(int sig) */ static int iPsAddRemoveGroupMember(char *pgName, char *groupName, char *memberName, -int addRemoveFlag) + int addRemoveFlag) { scf_handle_t *handle = NULL; scf_service_t *svc = NULL; @@ -2067,7 +2067,7 @@ psSetServicePersist(uint8_t persistType) static int iPsGetSetPersistType(uint8_t *persistType, scf_handle_t *handle, -scf_service_t *svc, int getSet) + scf_service_t *svc, int getSet) { scf_propertygroup_t *pg = NULL; scf_property_t *prop = NULL; @@ -2290,8 +2290,8 @@ iPsGetSetStmfProp(int propType, char *propVal, int getSet) scf_transaction_t *tran = NULL; scf_transaction_entry_t *entry = NULL; scf_value_t *value = NULL; - char *psStmfPropVal; - char *psStmfProp; + char *psStmfPropVal = NULL; + char *psStmfProp = NULL; char stmfPropGet[MAXNAMELEN] = {0}; int ret = STMF_PS_SUCCESS; int commitRet; @@ -2639,7 +2639,7 @@ err: */ static int iPsGetServiceVersion(uint64_t *version, scf_handle_t *handle, -scf_service_t *svc) + scf_service_t *svc) { scf_propertygroup_t *pg = NULL; scf_property_t *prop = NULL; -- cgit v1.2.3