Thread (36 messages) flat view 36 messages, 2 authors, 2011-01-06
STALE5706d

[PATCH 21/34] FIX: Initialize subarray variable in reshape_array

From: Adam Kwolek <hidden>
Date: 2011-01-04 14:38:23
Subsystem: the rest · Maintainer: Linus Torvalds

subarray variable was not initialized in reshape_array()

Signed-off-by: Adam Kwolek <redacted>
---

 Grow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Grow.c b/Grow.c
index dae9bbf..1c10889 100644
--- a/Grow.c
+++ b/Grow.c
@@ -1616,7 +1616,7 @@ static int reshape_array(char *container, int fd, char *devname,
 	struct mdu_array_info_s array;
 	char *c;
 	int rv = 0;
-	char *subarray = NULL;
+	char *subarray = strchr(info->text_version+1, '/') + 1;
 
 	int *fdlist;
 	unsigned long long *offsets;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help