video_shader_read_reference_path - simplify

This commit is contained in:
twinaphex 2020-09-04 04:12:51 +02:00
parent 09f72c1465
commit 91d78c1e9f

View File

@ -763,11 +763,8 @@ static char *video_shader_read_reference_path(const char *path)
}
/* rebase relative reference path */
if (!path_is_absolute(ref_path))
fill_pathname_resolve_relative(reference,
path, ref_path, PATH_MAX_LENGTH);
else
strlcpy(reference, ref_path, PATH_MAX_LENGTH);
fill_pathname_resolve_relative(reference,
path, ref_path, PATH_MAX_LENGTH);
}
if (line)