mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
libobs: Remove potential NULL pointer dereference
This commit is contained in:
parent
df14671d2f
commit
a746c8cdd1
|
@ -225,8 +225,12 @@ obs_property_t *obs_properties_get(obs_properties_t *props, const char *name)
|
|||
|
||||
void obs_properties_apply_settings(obs_properties_t *props, obs_data_t *settings)
|
||||
{
|
||||
struct obs_property *p = props->first_property;
|
||||
struct obs_property *p;
|
||||
|
||||
if (!props)
|
||||
return;
|
||||
|
||||
p = props->first_property;
|
||||
while (p) {
|
||||
if (p->modified)
|
||||
p->modified(props, p, settings);
|
||||
|
|
Loading…
Reference in a new issue