Support compilation in WSL Ubuntu 20.04 LTS. Fix some warnings.

This commit is contained in:
Sorgelig
2021-10-07 03:08:56 +08:00
parent a215fb36bb
commit 7abbf7f8f4
12 changed files with 37 additions and 40 deletions

View File

@@ -409,7 +409,7 @@ static void parse_config()
do {
p = user_io_get_confstr(i);
printf("get cfgstring %d = %s\n", i, p);
printf("get cfgstring %d = %s\n", i, p ? p : "NULL");
if (!i)
{
OsdCoreNameSet((p && p[0]) ? p : "CORE");