From 87904df3f6208bc777d6295fd146cebc246e1f08 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 11 Jan 2008 21:36:20 +0000 Subject: [PATCH] Made initialization of iso_read_opts safer --- libisoburn/trunk/ng_src/isofs_wrap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libisoburn/trunk/ng_src/isofs_wrap.c b/libisoburn/trunk/ng_src/isofs_wrap.c index 93444ed2..7daa2066 100644 --- a/libisoburn/trunk/ng_src/isofs_wrap.c +++ b/libisoburn/trunk/ng_src/isofs_wrap.c @@ -152,7 +152,8 @@ int isoburn_read_image(struct burn_drive *d, ret = isoburn_disc_get_msc1(d, (int*) &ropts.block); if (ret < 0) return -2; - + + memset((char *) &ropts, 0, sizeof(ropts)); ropts.norock = read_opts->norock; ropts.nojoliet = read_opts->nojoliet; ropts.preferjoliet = read_opts->preferjoliet;