cr: fd can be used uninitialized
PATCH 1/1 cr: fd can be used uninitialized
Trivial fix.
Signed-off-by Serge E. Hallyn <serue-r/[email protected]>
--- checkpoint/rstr_file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
checkpoint/rstr_file.c +1 -1
@@ -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)
Signature · 1 line
1.6.1