From: Russell Bryant Date: Thu, 17 Apr 2008 22:21:32 +0000 (+0000) Subject: Make this file compile. The variable str is never set anywhere. Furthermore, X-Git-Tag: 1.6.2.0-beta1~2445 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0270b3d6c99fdcdc60edb04a03268768dbaeee73;p=thirdparty%2Fasterisk.git 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. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114231 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/utils.c b/main/utils.c index f831d7da4a..3ae7d09274 100644 --- a/main/utils.c +++ b/main/utils.c @@ -714,10 +714,11 @@ static const char *locktype2str(enum ast_lock_type type) 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) {