~flier-lu/libmemcached/win32-vs2008

« back to all changes in this revision

Viewing changes to libmemcached/allocators.c

  • Committer: Flier Lu
  • Date: 2011-01-12 07:11:09 UTC
  • Revision ID: flier.lu@gmail.com-20110112071109-odi0zjs4i07bzsbm
replace %zu instead of %lu

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
struct _allocators_st *create_global_default_allocator()
39
39
{
40
 
  struct _allocators_st *allocator;
 
40
  struct _allocators_st *allocator = (struct _allocators_st *) malloc(sizeof(struct _allocators_st));
41
41
 
42
42
  allocator->calloc= _libmemcached_calloc;
43
43
  allocator->context= NULL;