[asterisk-commits] russell: branch 1.4 r71362 - in /branches/1.4:	./ main/asterisk.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Sun Jun 24 15:06:32 CDT 2007
    
    
  
Author: russell
Date: Sun Jun 24 15:06:31 2007
New Revision: 71362
URL: http://svn.digium.com/view/asterisk?view=rev&rev=71362
Log:
Merged revisions 71358 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r71358 | russell | 2007-06-24 15:04:21 -0500 (Sun, 24 Jun 2007) | 2 lines
Revert the patch from issue 9654 due to an unexpected side effect
........
Modified:
    branches/1.4/   (props changed)
    branches/1.4/main/asterisk.c
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/asterisk.c?view=diff&rev=71362&r1=71361&r2=71362
==============================================================================
--- branches/1.4/main/asterisk.c (original)
+++ branches/1.4/main/asterisk.c Sun Jun 24 15:06:31 2007
@@ -2282,9 +2282,6 @@
 	for (;;) {
 		ebuf = (char *)el_gets(el, &num);
 
-		if (!ebuf)
-			break;
-
 		if (!ast_strlen_zero(ebuf)) {
 			if (ebuf[strlen(ebuf)-1] == '\n')
 				ebuf[strlen(ebuf)-1] = '\0';
@@ -2959,14 +2956,12 @@
 
 		for (;;) {
 			buf = (char *)el_gets(el, &num);
-			if (!buf)
-				break;
-
-			if (buf[strlen(buf)-1] == '\n')
-				buf[strlen(buf)-1] = '\0';
-			consolehandler((char *)buf);
-
-			if (!buf && ast_opt_remote && (write(STDOUT_FILENO, "\nUse EXIT or QUIT to exit the asterisk console\n",
+			if (buf) {
+				if (buf[strlen(buf)-1] == '\n')
+					buf[strlen(buf)-1] = '\0';
+
+				consolehandler((char *)buf);
+			} else if (ast_opt_remote && (write(STDOUT_FILENO, "\nUse EXIT or QUIT to exit the asterisk console\n",
 				   strlen("\nUse EXIT or QUIT to exit the asterisk console\n")) < 0)) {
 				/* Whoa, stdout disappeared from under us... Make /dev/null's */
 				int fd;
    
    
More information about the asterisk-commits
mailing list