Project

General

Profile

Bug #5108 ยป 0002-rpcbind.c-value-may-be-used-uninitialized-sparc.patch

Gordon Ross, 2014-08-19 11:48 PM

View differences:

usr/src/cmd/rpcbind/rpcbind.c
1058 1058
get_smf_prop(const char *var, boolean_t def_val)
1059 1059
{
1060 1060
	scf_simple_prop_t *prop;
1061
	uint8_t *val;
1061
	uint8_t *val = NULL;
1062 1062
	boolean_t res = def_val;
1063 1063

  
1064 1064
	prop = scf_simple_prop_get(NULL, NULL, "config", var);
......
1081 1081
get_smf_iprop(const char *var, int def_val, int min, int max)
1082 1082
{
1083 1083
	scf_simple_prop_t *prop;
1084
	int64_t *val;
1084
	int64_t *val = NULL;
1085 1085
	int res = def_val;
1086 1086

  
1087 1087
	prop = scf_simple_prop_get(NULL, NULL, "config", var);
    (1-1/1)