~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_cache.cc

  • Committer: Monty Taylor
  • Date: 2008-12-07 23:42:51 UTC
  • mto: This revision was merged to the branch mainline in revision 670.
  • Revision ID: monty@inaugust.com-20081207234251-yxtbg06jpylwej29
Finally removed all of the my_malloc stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
bool open_cached_file(IO_CACHE *cache, const char* dir, const char *prefix,
34
34
                         size_t cache_size, myf cache_myflags)
35
35
{
36
 
  cache->dir=    dir ? my_strdup(dir,MYF(cache_myflags & MY_WME)) : (char*) 0;
37
 
  cache->prefix= (prefix ? my_strdup(prefix,MYF(cache_myflags & MY_WME)) :
 
36
  cache->dir=    dir ? strdup(dir) : (char*) 0;
 
37
  cache->prefix= (prefix ? strdup(prefix) :
38
38
                 (char*) 0);
39
39
  cache->file_name=0;
40
40
  cache->buffer=0;                              /* Mark that not open */