[asterisk-commits] russell: trunk r114231 - /trunk/main/utils.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 17 17:21:33 CDT 2008


Author: russell
Date: Thu Apr 17 17:21:32 2008
New Revision: 114231

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114231
Log:
Make this file compile.  The variable str is never set anywhere.  Furthermore,
it duplicates a lot of code.  I will leave it to murf to clean up.

Modified:
    trunk/main/utils.c

Modified: trunk/main/utils.c
URL: http://svn.digium.com/view/asterisk/trunk/main/utils.c?view=diff&rev=114231&r1=114230&r2=114231
==============================================================================
--- trunk/main/utils.c (original)
+++ trunk/main/utils.c Thu Apr 17 17:21:32 2008
@@ -714,10 +714,11 @@
 	return "UNKNOWN";
 }
 
+/*! \todo this function is very broken and duplicates a lot of code ... */
 void log_show_lock(void *this_lock_addr)
 {
 	struct thr_lock_info *lock_info;
-	struct ast_str *str;
+	struct ast_str *str = NULL;
 
 	pthread_mutex_lock(&lock_infos_lock.mutex);
 	AST_LIST_TRAVERSE(&lock_infos, lock_info, entry) {




More information about the asterisk-commits mailing list