- patched to compile with -Werror (rhbz#429385)
[cdrkit/templates.git] / icedax-segfault.patch
blob9bcda47dbc73d932189bf4c606c49f8f04952787
1 --- cdrkit-1.1.6/icedax/interface.c.segf 2007-09-21 10:34:36.000000000 +0200
2 +++ cdrkit-1.1.6/icedax/interface.c 2007-09-21 10:35:10.000000000 +0200
3 @@ -611,12 +611,6 @@ static int OpenCdRom(char *pdev_name)
4 usal_help(stderr);
5 exit(NO_ERROR);
8 - if (global.scandevs) {
9 - list_devices(usalp, stdout, 0);
10 - exit(0);
11 - }
13 /* device name, debug, verboseopen */
14 usalp = usal_open(pdev_name, errstr, sizeof(errstr), 0, 0);
16 @@ -661,6 +655,11 @@ static int OpenCdRom(char *pdev_name)
17 dontneedgroup();
18 dontneedroot();
20 + if (global.scandevs) {
21 + list_devices(usalp, stdout, 0);
22 + exit(0);
23 + }
25 if (global.scanbus) {
26 select_target(usalp, stdout);
27 exit(0);