mirror of
https://github.com/armink/EasyLogger.git
synced 2025-01-19 07:42:52 +08:00
使用字符串需初始化
This commit is contained in:
parent
4a6621892b
commit
28727e7ddd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user