Kouhei Sutou
null+****@clear*****
Thu Oct 4 10:38:50 JST 2012
Kouhei Sutou 2012-03-09 21:44:27 +0900 (Fri, 09 Mar 2012) New Revision: 8b3aefbcd5d3e0d31dc7a11549be77154df5f232 https://github.com/mroonga/mroonga/commit/8b3aefbcd5d3e0d31dc7a11549be77154df5f232 Log: Remove needless strdup Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+3 -1) =================================================================== --- ha_mroonga.cc 2012-03-09 00:03:32 +0900 (141a720) +++ ha_mroonga.cc 2012-03-09 21:44:27 +0900 (b8e9f62) @@ -727,8 +727,10 @@ static void mrn_default_parser_update(THD *thd, struct st_mysql_sys_var *var, #ifdef MRN_NEED_FREE_STRING_MEMALLOC_PLUGIN_VAR my_free(*old_value_ptr, MYF(0)); -#endif *old_value_ptr = my_strdup(new_value, MYF(MY_WME)); +#else + *old_value_ptr = (char *)new_value; +#endif } grn_ctx_fin(&ctx); -------------- next part -------------- HTML����������������������������...Download