diff --git a/core/dap_common.c b/core/dap_common.c
index 53773161c1e4966cd859bf01e8c90647993bbfb5..99171d7a63af860531a862a60efcfed0324763a3 100644
--- a/core/dap_common.c
+++ b/core/dap_common.c
@@ -102,7 +102,6 @@ int dap_common_init(const char * a_log_file)
         s_log_file = fopen(a_log_file , "a");
         if(s_log_file == NULL) {
             fprintf(stderr,"Can't open log file %s to append\n", a_log_file);
-            s_log_file=stdout;
             return -1;
         }
     }