0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

libobs: Fix da_push_back taking a wrong type of item

Since the darray `sys_include_dirs` is an array of `char *`, it is
required to take a pointer to `char *`, that is `char **`. However,
`char *` was passed.
Since this function never called, another fix is removing entire
function `cf_preprocessor_add_sys_include_dir`.
This commit is contained in:
Norihiro Kamae 2021-07-21 19:09:32 +09:00 committed by Jim
parent 60753fbfaf
commit 7b4ae8611c

View File

@ -187,8 +187,9 @@ static inline void
cf_preprocessor_add_sys_include_dir(struct cf_preprocessor *pp,
const char *include_dir)
{
char *str = bstrdup(include_dir);
if (include_dir)
da_push_back(pp->sys_include_dirs, bstrdup(include_dir));
da_push_back(pp->sys_include_dirs, &str);
}
EXPORT void cf_preprocessor_add_def(struct cf_preprocessor *pp,