[winpr,timezone] fix NULL strdup

This commit is contained in:
akallabeth 2024-05-12 20:17:06 +02:00
parent e037f643ea
commit a86ca848d5

View File

@ -110,7 +110,7 @@ static char* topath(const char* base, const char* bname, const char* name)
return _strdup(base);
if (!base && !bname)
return _strdup(bname);
return _strdup(name);
if (!base)
winpr_asprintf(&path, &plen, "%s/%s", bname, name);