198
200
/* New option still remains to apply at the end */
199
201
if (!remove_option && *(dst_ptr - 1) != '\n')
201
203
dst_ptr= add_option(dst_ptr, option_value, option, remove_option);
204
206
for (; nr_newlines; nr_newlines--)
209
211
/* Don't write the file if there are no changes to be made */
211
my_fseek(cnf_file, 0, MY_SEEK_SET, MYF(0)) ||
212
my_fwrite(cnf_file, (unsigned char*) file_buffer, (size_t) (dst_ptr - file_buffer),
214
fwrite(file_buffer, 1, (size_t) (dst_ptr - file_buffer), cnf_file))