Skip to content
Snippets Groups Projects
  • Rob Swindell's avatar
    f57395c3
    Don't conditionally allocate scfg_t dynamic arrays · f57395c3
    Rob Swindell authored
    malloc(0) returns a usable/freeable pointer on all supported platforms.
    
    This change insures that the scfg_t dynamically allocated arrays are all valid
    non-NULL pointers, even if/when the array length is 0. This should resolve
    a lot of new(ish) CIDs. Or not. We'll see. :-/
    f57395c3
    History
    Don't conditionally allocate scfg_t dynamic arrays
    Rob Swindell authored
    malloc(0) returns a usable/freeable pointer on all supported platforms.
    
    This change insures that the scfg_t dynamically allocated arrays are all valid
    non-NULL pointers, even if/when the array length is 0. This should resolve
    a lot of new(ish) CIDs. Or not. We'll see. :-/