From 30176ed3721a33b15888b58b200a645d27f7d317 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 22 Sep 2007 06:49:52 +0000 Subject: [PATCH] Prevented SIGSEGV in isoburn_drive_scan_and_grab() --- src/burn_wrap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/burn_wrap.c b/src/burn_wrap.c index 82d58270..ea607e31 100644 --- a/src/burn_wrap.c +++ b/src/burn_wrap.c @@ -122,7 +122,6 @@ int isoburn_drive_scan_and_grab(struct burn_drive_info *drive_infos[], ret= 0; goto ex; } - o->treatment= treatment; if(treatment==1) { ret= burn_drive_scan_and_grab(drive_infos, adrpt, load); @@ -143,6 +142,8 @@ int isoburn_drive_scan_and_grab(struct burn_drive_info *drive_infos[], /* >>> welcome file for modfication treatment */; } + if(o!=NULL) + o->treatment= treatment; ret= 1; ex: