diff options
author | Toomas Soome <tsoome@me.com> | 2017-02-15 23:42:24 +0200 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2017-07-14 15:15:01 +0000 |
commit | 8fd2e913f04a71b9e820a088819d5b3d5205945b (patch) | |
tree | d980289e87e022e8fadea9706914a6fe7cd0fdea | |
parent | 76fb654b00249d6aa041522127c9503d69667164 (diff) | |
download | illumos-joyent-8fd2e913f04a71b9e820a088819d5b3d5205945b.tar.gz |
8457 libstmf: psStmfProp and psStmfPropVal may be used uninitialized
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Yuri Pankov <yuripv@gmx.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r-- | usr/src/lib/libstmf/common/store.c | 10 |
1 files 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; |