8457 libstmf: psStmfProp and psStmfPropVal may be used uninitialized

Review Request #614 — Created July 4, 2017 and submitted — Latest diff uploaded

tsoome
illumos-gate
8457
d1a91b8...
general
../common/store.c: In function 'iPsGetSetStmfProp':
../common/store.c:2397:6: error: 'psStmfProp' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  if (scf_pg_get_property(pg, psStmfProp, prop) == -1) {
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/store.c:2447:7: error: 'psStmfPropVal' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   if (scf_value_set_astring(value, psStmfPropVal) == -1) {
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors


Loading...