[asterisk-commits] russell: branch 1.4 r96644 - /branches/1.4/main/devicestate.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 4 20:09:19 CST 2008


Author: russell
Date: Fri Jan  4 20:09:19 2008
New Revision: 96644

URL: http://svn.digium.com/view/asterisk?view=rev&rev=96644
Log:
Don't pass an empty string as the device name.

Modified:
    branches/1.4/main/devicestate.c

Modified: branches/1.4/main/devicestate.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/devicestate.c?view=diff&rev=96644&r1=96643&r2=96644
==============================================================================
--- branches/1.4/main/devicestate.c (original)
+++ branches/1.4/main/devicestate.c Fri Jan  4 20:09:19 2008
@@ -329,7 +329,7 @@
 	 */
 	if (!norecurse && (tmp = strrchr(device, '-'))) {
 		*tmp = '\0';
-		__ast_device_state_changed_literal(tmp, 1);
+		__ast_device_state_changed_literal(device, 1);
 	}
 	
 	return 1;




More information about the asterisk-commits mailing list