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

This commit is contained in:
Anthony Minessale 2014-04-11 02:36:13 +05:00
parent a86623972d
commit f1d7721710
1 changed files with 1 additions and 1 deletions

View File

@ -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
*/
#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