diff --git a/include/dap_common.h b/include/dap_common.h
index 27468c603689d05bf5ee89e2c346281a804d7087..50e35ee7010495b9325c08ac0fa0ac8a06b07bbf 100755
--- a/include/dap_common.h
+++ b/include/dap_common.h
@@ -330,9 +330,7 @@ DAP_STATIC_INLINE void DAP_AtomicUnlock( dap_spinlock_t *lock )
 
 
 
-extern char *g_sys_dir_path ;
-extern size_t g_sys_dir_path_len;
-
+extern char *g_sys_dir_path;
 
 //int dap_common_init( const char * a_log_file );
 int dap_common_init( const char *console_title, const char *a_log_file );
diff --git a/src/dap_common.c b/src/dap_common.c
index d145c6fd48faa1f757bc9d443468f06bc326b015..2deac60bf08d2becc26d72bd65eb99ca2e76eced 100755
--- a/src/dap_common.c
+++ b/src/dap_common.c
@@ -135,7 +135,6 @@ static unsigned int s_ansi_seq_color_len[16] = {0};
 
 static volatile bool s_log_term_signal = false;
 char* g_sys_dir_path = NULL;
-size_t g_sys_dir_path_len = 0;
 
 static char s_last_error[LAST_ERROR_MAX]    = {'\0'},
     s_log_file_path[MAX_PATH]               = {'\0'},