From fe7cd6b64e81d5524c7fa85dbd35bd71fc94ce04 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 9 Jul 2020 12:12:16 +0200 Subject: [PATCH] Dump: do not create a dir (created by export) --- src/video_display/dump.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/video_display/dump.cpp b/src/video_display/dump.cpp index ec0623fc6..9c0312432 100644 --- a/src/video_display/dump.cpp +++ b/src/video_display/dump.cpp @@ -59,10 +59,6 @@ struct dump_display_state { string dirname; time_t now = time(NULL); dirname = "dump." + to_string(now); - if (platform_mkdir(dirname.c_str()) == -1) { - perror("mkdir"); - throw string("Unable to create directory!"); - } e = export_init(NULL, dirname.c_str(), true); } ~dump_display_state() {