Commit 7d7fef63 authored by Federico G. Schwindt's avatar Federico G. Schwindt Committed by Pål Hermunn Johansen

Always initialise vd->dname

This was lost in commit 74328de8.
Fixes #2412.
parent e8402806
......@@ -531,7 +531,7 @@ VSM_Attach(struct vsm *vd, int progress)
{
double t0;
unsigned u;
int n = 0;
int i, n = 0;
CHECK_OBJ_NOTNULL(vd, VSM_MAGIC);
......@@ -540,6 +540,14 @@ VSM_Attach(struct vsm *vd, int progress)
else
t0 = VTIM_mono() + vd->patience;
if (vd->dname == NULL) {
/* Use default (hostname) */
i = VSM_Arg(vd, 'n', "");
if (i < 0)
return (i);
AN(vd->dname);
}
AZ(vd->attached);
while (1) {
u = VSM_Status(vd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment