fix wrong log 61/88861/1
authorBoram Park <boram1288.park@samsung.com>
Wed, 21 Sep 2016 03:44:34 +0000 (12:44 +0900)
committerBoram Park <boram1288.park@samsung.com>
Wed, 21 Sep 2016 03:44:34 +0000 (12:44 +0900)
Change-Id: I6825c3ac71de5b963832566715335e8ceceab92f

src/tdm.c

index ff2ca9884c96ecef831fb80a3b6dc869e5347f28..b04ab2d003322929c3d7633ff3402a06c4cc6615 100644 (file)
--- a/src/tdm.c
+++ b/src/tdm.c
@@ -1080,11 +1080,11 @@ tdm_display_enable_dump(tdm_private_display *private_display, const char *dump_s
 
        if (!strncmp(arg, "none", 4)) {
                tdm_debug_dump = 0;
+               TDM_SNPRINTF(reply, len, "path: %s\n", (tdm_debug_dump_dir)?:"unknown");
                if (tdm_debug_dump_dir) {
                        free(tdm_debug_dump_dir);
                        tdm_debug_dump_dir = NULL;
                }
-               TDM_SNPRINTF(reply, len, "path: %s\n", path);
                goto done;
        }