Don't forget to initialize 'id' field.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2005-07-13 07:46:55 +00:00
parent 08188342a3
commit 436b93a0dd

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;