fix for FSCORE-40

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5566 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2007-08-03 21:29:01 +00:00
1 parent d3aa5b433b
commit f1222ba2fd
14 files changed
+48 -30

No files matched your search

+2 -2
View File
@@ -327,12 +327,12 @@ static xmlrpc_value *freeswitch_man(xmlrpc_env * const envP, xmlrpc_value * cons
if (action) {
if (switch_core_management_exec(relative_oid, action, buf, sizeof(buf)) == SWITCH_STATUS_SUCCESS) {
if (action == SMA_SET) {
if (switch_strlen_zero(buf)) {
if (*buf != '\0') {
snprintf(buf, sizeof(buf), "OK\n");
}
}
} else {
if (switch_strlen_zero(buf)) {
if (*buf != '\0') {
snprintf(buf, sizeof(buf), "ERROR\n");
}
}