mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-12-06 11:36:45 +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
|
||||
def_section = malloc(sizeof(struct section_config_t));
|
||||
#endif
|
||||
*def_section = (struct section_config_t)default_section_config;
|
||||
if (def_section == NULL)
|
||||
return -ENOMEM;
|
||||
*def_section = (struct section_config_t)default_section_config;
|
||||
|
||||
def_section->prev = prev;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user