Don't forget to initialize 'id' field.

MFC after:	3 days
This commit is contained in:
pjd 2005-07-13 07:46:55 +00:00
parent 0c522ec5dd
commit 894f400097

View File

@ -173,6 +173,7 @@ raid3_label(struct gctl_req *req)
return;
}
strlcpy(md.md_name, str, sizeof(md.md_name));
md.md_id = arc4random();
md.md_all = *nargs - 1;
md.md_mflags = 0;
md.md_dflags = 0;