some more protection from passing around and printing null values, we are now initializing null's passed to switch_caller_profile_new as blank strings in the caller profile, if your using any caller profile values in if's, please use !switch_strlen_zero() in your check.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4203 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2007-02-12 18:13:14 +00:00
parent 38cd3a8105
commit 62a44e621f
4 changed files with 34 additions and 27 deletions
+7
View File
@@ -199,6 +199,13 @@ switch_mutex_unlock(obj->flag_mutex);
*/
#define switch_strlen_zero(s) (!s || *s == '\0')
/*!
\brief Make a null string a blank string instead
\param s the string to test
\return the original string or blank string.
*/
#define switch_str_nil(s) (s ? s : "")
/*!
\brief Wait a desired number of microseconds and yield the CPU
*/