From 828d2fbaab304d1ec7db2f563a59eaf2c7a516ea Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Thu, 22 Jul 2010 18:36:47 +0200 Subject: [PATCH] multipath-tools: Assign correct pointer from REALLOC Assign the pointer returned from REALLOC to v->slot; this is the memory area to be changed. Signed-off-by: Christof Schmitt --- libmultipath/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmultipath/vector.c b/libmultipath/vector.c index 3415461..67c7500 100644 --- a/libmultipath/vector.c +++ b/libmultipath/vector.c @@ -96,7 +96,7 @@ vector_del_slot(vector v, int slot) v->slot = NULL; } else - v = REALLOC(v->slot, sizeof (void *) * v->allocated); + v->slot = REALLOC(v->slot, sizeof (void *) * v->allocated); } void -- 2.5.5