Fix a reversed-logic ast_strlen_zero.

This problem was pointed out on the asterisk-users list
by Jim Dickenson



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@161490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Mark Michelson 17 years ago
parent d9c4ba0231
commit aa3e7acc89

@ -2163,7 +2163,7 @@ static int action_originate(struct mansession *s, const struct message *m)
int format = AST_FORMAT_SLINEAR;
pthread_t th;
if (!ast_strlen_zero(name)) {
if (ast_strlen_zero(name)) {
astman_send_error(s, m, "Channel not specified");
return 0;
}

Loading…
Cancel
Save