From 28727e7ddd32d636adca4887673c1e1000428c6a Mon Sep 17 00:00:00 2001 From: yuxiaojun Date: Wed, 7 Dec 2022 16:31:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E9=9C=80=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- easylogger/plugins/file/elog_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easylogger/plugins/file/elog_file.c b/easylogger/plugins/file/elog_file.c index d05dfbb..8327b9f 100755 --- a/easylogger/plugins/file/elog_file.c +++ b/easylogger/plugins/file/elog_file.c @@ -69,7 +69,7 @@ static bool elog_file_rotate(void) #define SUFFIX_LEN 10 /* mv xxx.log.n-1 => xxx.log.n, and xxx.log => xxx.log.0 */ int n, err = 0; - char oldpath[256], newpath[256]; + char oldpath[256]= {0}, newpath[256] = {0}; size_t base = strlen(local_cfg.name); bool result = true; FILE *tmp_fp;