mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-12-07 12:06:47 +03:00
fix: проверка указателя перед разыменованием
This commit is contained in:
@@ -1246,9 +1246,9 @@ int init_section_config(struct section_config_t **section, struct section_config
|
|||||||
#else
|
#else
|
||||||
def_section = malloc(sizeof(struct section_config_t));
|
def_section = malloc(sizeof(struct section_config_t));
|
||||||
#endif
|
#endif
|
||||||
*def_section = (struct section_config_t)default_section_config;
|
|
||||||
if (def_section == NULL)
|
if (def_section == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
*def_section = (struct section_config_t)default_section_config;
|
||||||
|
|
||||||
def_section->prev = prev;
|
def_section->prev = prev;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user