[PATCH 11/14] Fix jmicron names again
Phillip Susi <[email protected]> Tue, 06 Dec 2011 13:39:34 -0500
| Newsgroups | gmane.linux.ataraid |
|---|---|
| Message-ID | <[email protected]> |
Author: Danny Wood <[email protected]> Bug-Ubuntu: http://launchpad.net/bugs/576289 Last-Update: 2011-03-08 Description: Uninitialized variable prevented code from working as intended. Index: b/1.0.0.rc16/lib/format/ataraid/jm.c =================================================================== --- a/1.0.0.rc16/lib/format/ataraid/jm.c +++ b/1.0.0.rc16/lib/format/ataraid/jm.c @@ -25,7 +25,7 @@ static char * name(struct lib_context *lc, struct raid_dev *rd, unsigned int subset) { - size_t i, len; + size_t i = JM_NAME_LEN - 1, len; struct jm *jm = META(rd, jm); char *ret, *name = (char *) jm->name; char buf[JM_NAME_LEN + 1] = { '\0' };