summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/power/handlers.c2
-rw-r--r--usr/src/cmd/rpcbind/rpcbind.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/power/handlers.c b/usr/src/cmd/power/handlers.c
index 70f489ab12..da56c14218 100644
--- a/usr/src/cmd/power/handlers.c
+++ b/usr/src/cmd/power/handlers.c
@@ -1116,7 +1116,7 @@ sfpath(void)
char diskname[256];
struct stat stbuf;
int dir = 0;
- dev_t dev;
+ dev_t dev = NODEV;
if (statefile) {
mesg(MERR, "ignored redundant statefile entry\n");
diff --git a/usr/src/cmd/rpcbind/rpcbind.c b/usr/src/cmd/rpcbind/rpcbind.c
index 5703482aef..694e4f942f 100644
--- a/usr/src/cmd/rpcbind/rpcbind.c
+++ b/usr/src/cmd/rpcbind/rpcbind.c
@@ -1058,7 +1058,7 @@ static boolean_t
get_smf_prop(const char *var, boolean_t def_val)
{
scf_simple_prop_t *prop;
- uint8_t *val;
+ uint8_t *val = NULL;
boolean_t res = def_val;
prop = scf_simple_prop_get(NULL, NULL, "config", var);
@@ -1081,7 +1081,7 @@ static int
get_smf_iprop(const char *var, int def_val, int min, int max)
{
scf_simple_prop_t *prop;
- int64_t *val;
+ int64_t *val = NULL;
int res = def_val;
prop = scf_simple_prop_get(NULL, NULL, "config", var);