OCT 1. 重命名源码文件,避免和开源LWIP文件同名

This commit is contained in:
huangxin 2023-02-06 09:55:36 +08:00
parent 60eda95739
commit 9a1a47b980
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ int user_init(const char *pAppCfgFile, const char *pCfgDirectory, const char *pK
strcpy(bufCfgDir, pCfgDirectory); strcpy(bufCfgDir, pCfgDirectory);
} }
if (pAppCfgFile == NULL) { if (pAppCfgFile == NULL || strlen(pAppCfgFile) == 0) {
const char *pTmp = strdup(bufCfgDir); const char *pTmp = strdup(bufCfgDir);
sprintf(bufCfgFile, "%s/%s", pTmp, DEFAULT_CONFIG_FILE); sprintf(bufCfgFile, "%s/%s", pTmp, DEFAULT_CONFIG_FILE);
free((void *)pTmp); free((void *)pTmp);