mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 10:58:15 +00:00
change ast_strlen_zero to also check for the string to be defined
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1704,7 +1704,7 @@ static void ast_remotecontrol(char * data)
|
||||
for(;;) {
|
||||
ebuf = (char *)el_gets(el, &num);
|
||||
|
||||
if (ebuf && !ast_strlen_zero(ebuf)) {
|
||||
if (!ast_strlen_zero(ebuf)) {
|
||||
if (ebuf[strlen(ebuf)-1] == '\n')
|
||||
ebuf[strlen(ebuf)-1] = '\0';
|
||||
if (!remoteconsolehandler(ebuf)) {
|
||||
|
||||
Reference in New Issue
Block a user