diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-17 22:21:32 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-17 22:21:32 +0000 |
commit | a12ad00e363ab17663a6238765e9ca702005b58c (patch) | |
tree | 6ab81f30c3ca5bae0044baed9fe65c2e7da39f96 /main/utils.c | |
parent | 473b76beed703f8a4609ecda135f3d951011746e (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@114231 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/utils.c')
-rw-r--r-- | main/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c index f831d7da4..3ae7d0927 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) { |