From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: [trivial PATCH] cr: fix undefined value Date: Tue, 24 Mar 2009 14:12:23 -0500 Message-ID: <20090324191223.GA25247@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oren Laadan Cc: Linux Containers List-Id: containers.vger.kernel.org ret can be used undefined at bottom Signed-off-by: Serge E. Hallyn --- checkpoint/ckpt_mem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/checkpoint/ckpt_mem.c b/checkpoint/ckpt_mem.c index 7cfeac3..b1b50b5 100644 --- a/checkpoint/ckpt_mem.c +++ b/checkpoint/ckpt_mem.c @@ -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 -- 1.6.1