Mentions légales du service

Skip to content
Snippets Groups Projects
  • Andreas Enge's avatar
    a0962e8b
    Allocate at least one array element. · a0962e8b
    Andreas Enge authored
    Apparently malloc(0) is implementation defined and may cause errors;
    instead we can just allocate space for one element.
    
    * lib/ecpp.c (find_ecpp_discriminant), lib/mpi.c (mpi_worker): Allocate
    one element instead of zero.
    a0962e8b
    History
    Allocate at least one array element.
    Andreas Enge authored
    Apparently malloc(0) is implementation defined and may cause errors;
    instead we can just allocate space for one element.
    
    * lib/ecpp.c (find_ecpp_discriminant), lib/mpi.c (mpi_worker): Allocate
    one element instead of zero.