|
|
|
Re: Ubuntu Patches [17/16] | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Repost: formalized the description and cleaned up stylistic errors
From: Phillip Susi <psusi@xxxxxxxxxx>
Author: Danny Wood <danwood76@xxxxxxxxx>
Subject: Fix jmicron names again
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' };
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Ataraid-list mailing list Ataraid-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/ataraid-list
![]() |