~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_fopen.c

  • Committer: Monty Taylor
  • Date: 2008-09-05 22:55:50 UTC
  • mfrom: (373.1.9 stl-client-progs)
  • Revision ID: monty@inaugust.com-20080905225550-zco374c9s7kxwqyb
Merged removal of DYNAMIC_STRING.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
  if ((uint) file < my_file_limit && my_file_info[file].type != UNOPEN)
105
105
  {
106
106
    my_file_info[file].type = UNOPEN;
107
 
    free(my_file_info[file].name);
 
107
    my_free(my_file_info[file].name, MYF(MY_ALLOW_ZERO_PTR));
108
108
  }
109
109
  pthread_mutex_unlock(&THR_LOCK_open);
110
110
  return(err);
159
159
  else    
160
160
    *to++= 'r';
161
161
 
 
162
#if FILE_BINARY            /* If we have binary-files */  
 
163
  if (flag & FILE_BINARY)    
 
164
    *to++='b';
 
165
#endif  
162
166
  *to='\0';
163
167
} /* make_ftype */