~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_fopen.c

  • Committer: Brian Aker
  • Date: 2008-11-04 15:39:09 UTC
  • mfrom: (575.1.2 devel)
  • Revision ID: brian@tangent.org-20081104153909-c72hn65udxs1ccal
Merge of Monty's work

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
 
    my_free(my_file_info[file].name, MYF(MY_ALLOW_ZERO_PTR));
 
107
    free(my_file_info[file].name);
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  
166
162
  *to='\0';
167
163
} /* make_ftype */