subarray variable was not initialized in reshape_array() Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- 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; -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html