This function returns a char *, so it should not be const (the value is set from a function which also returns a char *, so there is no real reason for this to be const).
@@ -789,7 +789,7 @@ char *obs_find_data_file(const char *file)
{
struct dstr path = {0};
- const char *result = find_libobs_data_file(file);
+ char *result = find_libobs_data_file(file);
if (result)
return result;