X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e9c0448c6566825b170b98ecff716b098bda10e..b8d73e39d7ad879522cdb542e4ed69e2077a6f9e:/teshsuite/smpi/mpich3-test/coll/bcastzerotype.c diff --git a/teshsuite/smpi/mpich3-test/coll/bcastzerotype.c b/teshsuite/smpi/mpich3-test/coll/bcastzerotype.c index 65a6055273..9ebf1f7fde 100644 --- a/teshsuite/smpi/mpich3-test/coll/bcastzerotype.c +++ b/teshsuite/smpi/mpich3-test/coll/bcastzerotype.c @@ -10,7 +10,7 @@ int main(int argc, char *argv[]) { int i, type_size; MPI_Datatype type = MPI_DATATYPE_NULL; - char *buf = NULL; + int *buf = NULL; int wrank, wsize; MPI_Init(&argc, &argv); @@ -20,7 +20,7 @@ int main(int argc, char *argv[]) /* a random non-zero sized buffer */ #define NELEM (10) buf = malloc(NELEM*sizeof(int)); - assert(buf); + assert(buf!=NULL); for (i = 0; i < NELEM; i++) { buf[i] = wrank * NELEM + i;