summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McDonald <danmcd@joyent.com>2021-11-01 14:42:27 -0400
committerDan McDonald <danmcd@joyent.com>2021-11-01 15:06:28 -0400
commit1e09a794d96ea9140ef8ebc9ed4e214d4344d83a (patch)
tree199d8543421d6060f103556c62938adb0267243d
parentd109919a1d2826a477c97b04172bf2fe1d665762 (diff)
downloadillumos-joyent-1e09a794d96ea9140ef8ebc9ed4e214d4344d83a.tar.gz
13806 dladm: variable may be used uninitialized (fix mismerge)
-rw-r--r--usr/src/cmd/dladm/dladm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/dladm/dladm.c b/usr/src/cmd/dladm/dladm.c
index 4fec35ffc9..1f73e2c8e8 100644
--- a/usr/src/cmd/dladm/dladm.c
+++ b/usr/src/cmd/dladm/dladm.c
@@ -9918,7 +9918,7 @@ do_create_overlay(int argc, char *argv[], const char *use)
char name[MAXLINKNAMELEN];
dladm_status_t status;
uint32_t flags = DLADM_OPT_ACTIVE | DLADM_OPT_PERSIST;
- uint64_t vid;
+ uint64_t vid = 0;
boolean_t havevid = B_FALSE;
char propstr[DLADM_STRSIZE];
dladm_arg_list_t *proplist = NULL;
@@ -10529,7 +10529,7 @@ do_modify_overlay(int argc, char *argv[], const char *use)
int opt, ocnt = 0;
boolean_t flush, set, delete;
struct ether_addr e;
- char *dest;
+ char *dest = NULL;
datalink_id_t linkid = DATALINK_ALL_LINKID;
dladm_status_t status;