Skip to content

Commit af74bdd

Browse files
committed
correctly handle -oi
Noticed-by: Phil Krylov <phil@krylov.eu>
1 parent c878317 commit af74bdd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dma.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,15 @@ main(int argc, char **argv)
535535

536536
case 'o':
537537
/* -oX is being ignored, except for -oi */
538-
if (optarg[0] != 'i')
539-
break;
540-
/* Else FALLTHROUGH */
538+
if (optarg[0] == 'i') {
539+
nodot = 1;
540+
}
541+
break;
542+
541543
case 'O':
544+
/* -O name=val is also a no-op */
542545
break;
546+
543547
case 'i':
544548
nodot = 1;
545549
break;

0 commit comments

Comments
 (0)