Skip to content

Commit

Permalink
読み込み専用ファイルシステム上でタグ出力時に不要な一時ファイル作成でコケないようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
hcmiya committed Nov 17, 2017
1 parent ca3d14c commit d91b6eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion read.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,14 @@ static void cleanup(void) {
}

void open_output_file(void) {
if (O.out) {
if (O.edit == EDIT_LIST) {
fpout = fopen("/dev/null", "w");
if (!fpout) {
fileerror(O.out);
}
remove_tmp = false;
}
else if (O.out) {
if (strcmp(O.out, "-") == 0) {
fpout = stdout;
}
Expand Down
6 changes: 3 additions & 3 deletions version.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define OPUSCOMMENT_VERSION "1.3.6"
#define OPUSCOMMENT_VERSION "1.3.7"

#define OPUSCOMMENT_REVISION_YEAR (2017 - 1900)
#define OPUSCOMMENT_REVISION_MONTH (9 - 1)
#define OPUSCOMMENT_REVISION_DAY 7
#define OPUSCOMMENT_REVISION_MONTH (11 - 1)
#define OPUSCOMMENT_REVISION_DAY 17

0 comments on commit d91b6eb

Please sign in to comment.