C++ interface: Memcache constructor incompatible with underlying functions

Bug #1010899 reported by Paulo Pacheco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmemcached
Fix Released
Medium
Brian Aker

Bug Description

The Memcache class constructors call the memcached function with an invalid combination of arguments, resulting in a NULL pointer for the memcached_st memc member.

Version: 1.0.8
Revision: 1003.1.5

memc= memcached("", 0);

memcached_st *memcached(const char *string, size_t length)
{
  if (length == 0 and string)
  {
    return NULL;
  }

...
}

Thanx in advance

Paulo Pacheco (fooinha)
description: updated
Brian Aker (brianaker)
Changed in libmemcached:
assignee: nobody → Brian Aker (brianaker)
milestone: none → 1.0.10
importance: Undecided → Medium
Brian Aker (brianaker)
Changed in libmemcached:
status: New → Fix Committed
Brian Aker (brianaker)
Changed in libmemcached:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.