diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-26 18:54:24 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-26 18:54:24 +0000 |
commit | 1168964aa44ffe50af7f08aaae9fc1bbc90e7784 (patch) | |
tree | c0ffbb2fbd1dd819c7587a31da636ca6f4ae71c0 /asterisk.c | |
parent | db653f9eb1553a706ec819af67d84e261df14a26 (diff) |
change ast_strlen_zero to also check for the string to be defined
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6862 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c index 1596959ed..026654e86 100755 --- a/asterisk.c +++ b/asterisk.c @@ -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)) { |