提交 f1d77217 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-6448 --resolve revert string func patch cos some things free it

上级 a8662397
...@@ -875,7 +875,7 @@ SWITCH_DECLARE(switch_time_t) switch_str_time(const char *in); ...@@ -875,7 +875,7 @@ SWITCH_DECLARE(switch_time_t) switch_str_time(const char *in);
\param vname the name of the global pointer to modify with the new function \param vname the name of the global pointer to modify with the new function
*/ */
#define SWITCH_DECLARE_GLOBAL_STRING_FUNC(fname, vname) static void fname(const char *string) { if (!string) return;\ #define SWITCH_DECLARE_GLOBAL_STRING_FUNC(fname, vname) static void fname(const char *string) { if (!string) return;\
if (vname) {vname = NULL;}vname = switch_core_permanent_strdup(string);} static void fname(const char *string) if (vname) {free(vname); vname = NULL;}vname = strdup(string);} static void fname(const char *string)
/*! /*!
\brief Separate a string into an array based on a character delimiter \brief Separate a string into an array based on a character delimiter
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论