summaryrefslogtreecommitdiff
path: root/asterisk.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2005-10-26 18:54:24 +0000
committerRussell Bryant <russell@russellbryant.com>2005-10-26 18:54:24 +0000
commita736096e0b41f218cabd514a7841577a2ff4060e (patch)
treec0ffbb2fbd1dd819c7587a31da636ca6f4ae71c0 /asterisk.c
parentb5326f99fcad63b818436b02966afafbeabd24d6 (diff)
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
Diffstat (limited to 'asterisk.c')
-rwxr-xr-xasterisk.c2
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)) {