windows build tweaks.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9922 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-10-10 00:29:45 +00:00
parent a6a2d37c07
commit cb970d8fba
2 changed files with 2 additions and 4 deletions

View File

@ -2335,7 +2335,7 @@ SWITCH_STANDARD_API(uuid_session_heartbeat_function)
argc = switch_separate_string(mycmd, ' ', argv, (sizeof(argv) / sizeof(argv[0])));
if (argc != 2) {
if (argc != 2 || !argv[0]) {
goto error;
}

View File

@ -1280,7 +1280,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
ok = 1;
for (i = 0; i < and_argc; i++) {
switch_channel_t *pchannel;
switch_call_cause_t cause;
const char *cause_str;
if (!peer_sessions[i]) {
@ -1289,8 +1288,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
pchannel = switch_core_session_get_channel(peer_sessions[i]);
if (switch_channel_get_state(pchannel) >= CS_HANGUP) {
cause = switch_channel_get_cause(pchannel);
cause_str = switch_channel_cause2str(cause);
cause_str = switch_channel_cause2str(switch_channel_get_cause(pchannel));
if (switch_stristr(cause_str, fail_on_single_reject_var)) {
ok = 0;
break;