1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-12 14:11:56 +00:00

Use posix functions

This commit is contained in:
Alberto Fanjul 2022-10-16 22:44:07 +02:00
parent 6f84dc8b7d
commit b46679d5a4

View file

@ -826,8 +826,9 @@ int shl__mkdir_parents(const char *prefix, const char *path, mode_t mode)
if (!e || e == path)
return 0;
p = strndupa(path, e - path);
p = strndup(path, e - path);
r = shl__is_dir(p);
free(p);
if (r > 0)
return 0;
if (r == 0)