mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 22:03:50 +00:00
[mod_sofia] Cleanup sofia_glue_get_host() and make the pool arg be required.
This commit is contained in:
parent
f21da2885b
commit
0b0f5fff65
@ -3454,17 +3454,15 @@ char *sofia_glue_get_host(const char *str, switch_memory_pool_t *pool)
|
||||
{
|
||||
char *s, *p;
|
||||
|
||||
switch_assert(pool != NULL);
|
||||
|
||||
if ((p = strchr(str, '@'))) {
|
||||
p++;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (pool) {
|
||||
s = switch_core_strdup(pool, p);
|
||||
} else {
|
||||
s = strdup(p);
|
||||
}
|
||||
s = switch_core_strdup(pool, p);
|
||||
|
||||
for (p = s; p && *p; p++) {
|
||||
if ((*p == ';') || (*p == '>')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user