X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fgenerator.c;h=5bce0301ab6ae848f9315ea5b85c186210c8f30a;hb=a0fa9535659f0f5a9678406f47201bfd47245114;hp=213246ba2206a3d84916c8503c43c089bc26e975;hpb=25d9c6b0b915f46cc62d3aa72fe81e1274871cf4;p=m6w6%2Flibmemcached diff --git a/clients/generator.c b/clients/generator.c index 213246ba..5bce0301 100644 --- a/clients/generator.c +++ b/clients/generator.c @@ -47,7 +47,9 @@ void pairs_free(pairs_st *pairs) pairs_st *pairs_generate(uint64_t number_of, size_t value_length) { unsigned int x; - pairs_st *pairs= calloc((size_t)(number_of + 1), sizeof(pairs_st)); + pairs_st *pairs; + + pairs= (pairs_st*)calloc((size_t)number_of + 1, sizeof(pairs_st)); if (!pairs) goto error;