[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] [patch 1/2] multipath-tools: Assign correct pointer from REALLOC



From: Christof Schmitt <christof schmitt de ibm com>

Assign the pointer returned from REALLOC to v->slot; this is the memory area to
be changed.

Signed-off-by: Christof Schmitt <christof schmitt de ibm com>
---
 libmultipath/vector.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]