* [trivial PATCH] cr: fd can be used uninitialized
@ 2009-03-24 20:54 Serge E. Hallyn
0 siblings, 0 replies; only message in thread
From: Serge E. Hallyn @ 2009-03-24 20:54 UTC (permalink / raw)
To: Oren Laadan; +Cc: Linux Containers
Trivial fix.
Signed-off-by: Serge E. Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
checkpoint/rstr_file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/checkpoint/rstr_file.c b/checkpoint/rstr_file.c
index de260dc..c9d75e5 100644
--- a/checkpoint/rstr_file.c
+++ b/checkpoint/rstr_file.c
@@ -236,7 +236,7 @@ int cr_read_file(struct cr_ctx *ctx, int objref)
{
struct cr_hdr_file *hh;
struct file *file;
- int fd, ret;
+ int fd = -EINVAL, ret;
hh = cr_hbuf_get(ctx, sizeof(*hh));
if (!hh)
--
1.6.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-24 20:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-24 20:54 [trivial PATCH] cr: fd can be used uninitialized Serge E. Hallyn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox