X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fgenerator.c;h=5bce0301ab6ae848f9315ea5b85c186210c8f30a;hb=771170f522f2186b7fb0cde6052dbe37c1a9f1b7;hp=213246ba2206a3d84916c8503c43c089bc26e975;hpb=f0c2cbb3c6cb62fae50fefe373e50590a6bd50c3;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;