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`.master
parent
60753fbfaf
commit
7b4ae8611c
|
@ -187,8 +187,9 @@ static inline void
|
||||||
cf_preprocessor_add_sys_include_dir(struct cf_preprocessor *pp,
|
cf_preprocessor_add_sys_include_dir(struct cf_preprocessor *pp,
|
||||||
const char *include_dir)
|
const char *include_dir)
|
||||||
{
|
{
|
||||||
|
char *str = bstrdup(include_dir);
|
||||||
if (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,
|
EXPORT void cf_preprocessor_add_def(struct cf_preprocessor *pp,
|
||||||
|
|
Loading…
Reference in New Issue