OCT 1. 重命名源码文件,避免和开源LWIP文件同名
This commit is contained in:
parent
60eda95739
commit
9a1a47b980
|
@ -64,7 +64,7 @@ int user_init(const char *pAppCfgFile, const char *pCfgDirectory, const char *pK
|
|||
strcpy(bufCfgDir, pCfgDirectory);
|
||||
}
|
||||
|
||||
if (pAppCfgFile == NULL) {
|
||||
if (pAppCfgFile == NULL || strlen(pAppCfgFile) == 0) {
|
||||
const char *pTmp = strdup(bufCfgDir);
|
||||
sprintf(bufCfgFile, "%s/%s", pTmp, DEFAULT_CONFIG_FILE);
|
||||
free((void *)pTmp);
|
Loading…
Reference in New Issue