Skip to contentSkip to conversation

cr: fix undefined value

PATCH New Serge E. Hallyn 1 participant 1 message Mar 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cr: fix undefined value

ret can be used undefined at bottom

---
 checkpoint/ckpt_mem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
checkpoint/ckpt_mem.c +1 -1
index 7cfeac3..b1b50b5 100644
@@ -525,7 +525,7 @@ static int cr_write_shared_vma_contents(struct cr_ctx *ctx,
 {
 	struct inode *inode;
 	unsigned long end;
-	int ret;
+	int ret = -EINVAL;
 
 	/*
 	 * Citing mmap(2): "Updates to the mapping are visible to other
Signature · 1 line
1.6.1