segfaults are bad

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10386 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-11-13 21:05:01 +00:00
parent 892e50fc46
commit af7c8e397a

View File

@ -2670,7 +2670,7 @@ SWITCH_STANDARD_API(uuid_setvar_multi_function)
for (x = 0 ; x < argc; x++) {
var_name = argv[x];
if ((var_value = strchr(var_name, '='))) {
if (var_name && (var_value = strchr(var_name, '='))) {
*var_value++ = '\0';
}
if (switch_strlen_zero(var_name)) {