Skip to content

Commit a1eee11

Browse files
committed
Bug fix to scramble -H.
It now works if -O sam is not specified.
1 parent 4b0f37a commit a1eee11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

progs/scramble.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ int main(int argc, char **argv) {
558558
free(arg_list);
559559
}
560560

561-
if ((header || omode[1] != 's') && scram_write_header(out) != 0)
561+
if ((header || (omode[1] != 's' && omode[1] != '\0')) && scram_write_header(out) != 0)
562562
return 1;
563563
}
564564

0 commit comments

Comments
 (0)