build tweaks

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8897 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-07-03 23:37:19 +00:00
parent 98479fa633
commit ffb2e317bb
2 changed files with 2 additions and 3 deletions

View File

@ -544,7 +544,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_eavesdrop_session(switch_core_session
if ( (argc = switch_separate_string(data, ',', argv, (sizeof(argv) / sizeof(argv[0])))) ) {
for ( i = 0; i < argc; i++ ) {
/* If one of the group matches, then ok */
if ( !strcmp(argv[i], require_group)) {
if (argv[i] && !strcmp(argv[i], require_group)) {
ok = 1;
}
}

View File

@ -1097,8 +1097,7 @@ SWITCH_DECLARE(int) switch_build_uri(char *uri,
}
if (getnameinfo(addr, sa->salen, host, sizeof(host), serv, sizeof(serv),
(flags & SWITCH_URI_NUMERIC_HOST) ? NI_NUMERICHOST : 0 |
(flags & SWITCH_URI_NUMERIC_PORT) ? NI_NUMERICSERV : 0) != 0) {
((flags & SWITCH_URI_NUMERIC_HOST) ? NI_NUMERICHOST : 0) | ((flags & SWITCH_URI_NUMERIC_PORT) ? NI_NUMERICSERV : 0)) != 0) {
return 0;
}