[svn-commits] rizzo: trunk r45495 - /trunk/main/manager.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Oct 18 01:49:15 MST 2006


Author: rizzo
Date: Wed Oct 18 03:48:50 2006
New Revision: 45495

URL: http://svn.digium.com/view/asterisk?rev=45495&view=rev
Log:
add a comment to remember that a block of code is
completely redundant.


Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/main/manager.c?rev=45495&r1=45494&r2=45495&view=diff
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Wed Oct 18 03:48:50 2006
@@ -881,6 +881,12 @@
 	char *cat = NULL;
 	struct ast_config *cfg = ast_config_load("manager.conf");
 	int ret = -1;	/* default: error return */
+
+	/*
+	 * XXX there is no need to scan the config file again here,
+	 * suffices to call ast_get_manager_by_name_locked() to fetch
+	 * the user's entry.
+	 */
 
 	if (!cfg)
 		return -1;



More information about the svn-commits mailing list