~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_rename.c

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
*/
19
19
 
20
20
#include "heapdef.h"
21
 
#include <string.h>
22
21
 
23
22
int heap_rename(const char *old_name, const char *new_name)
24
23
{
28
27
  pthread_mutex_lock(&THR_LOCK_heap);
29
28
  if ((info = hp_find_named_heap(old_name)))
30
29
  {
31
 
    if (!(name_buff=(char*) strdup(new_name)))
 
30
    if (!(name_buff=(char*) my_strdup(new_name,MYF(MY_WME))))
32
31
    {
33
32
      pthread_mutex_unlock(&THR_LOCK_heap);
34
33
      return(my_errno);