From 53f7581047500ef3042fe0745af9a658b55851f9 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Wed, 28 Sep 2016 15:17:51 +0900 Subject: [PATCH] not create the reduntant directory when done Change-Id: I09e9540baff6b232b45f2770070f824faeca2ef4 --- src/tdm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tdm.c b/src/tdm.c index 384dbf1..bb26b97 100644 --- a/src/tdm.c +++ b/src/tdm.c @@ -1068,9 +1068,6 @@ tdm_display_enable_dump(tdm_private_display *private_display, const char *dump_s else path2++; - path = tdm_helper_dump_make_directory(path2, reply, len); - TDM_GOTO_IF_FAIL(path != NULL, done); - tdm_debug_dump = 0; snprintf(temp, sizeof(temp), "%s", dump_str); @@ -1087,6 +1084,9 @@ tdm_display_enable_dump(tdm_private_display *private_display, const char *dump_s goto done; } + path = tdm_helper_dump_make_directory(path2, reply, len); + TDM_GOTO_IF_FAIL(path != NULL, done); + if (!strncmp(arg, "current", 7)) { tdm_private_output *o = NULL; if (!private_display) { -- 2.7.4