Changeset 52e40513 in mainline


Ignore:
Timestamp:
2025-05-09T14:18:17Z (4 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
e1ed6ec0
Parents:
af73327a
Message:

hrctl: check realloc() return value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hrctl/hrctl.c

    raf73327a r52e40513  
    174174                vol_configs = realloc(vol_configs,
    175175                    (vol_count + 1) * sizeof(hr_config_t));
     176                if (vol_configs == NULL) {
     177                        rc = ENOMEM;
     178                        goto error;
     179                }
     180
    176181                hr_config_t *cfg = vol_configs + vol_count;
    177182
Note: See TracChangeset for help on using the changeset viewer.