Typo: should have been changed to a constant
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 22 Feb 2006 21:20:28 +0000 (21:20 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 22 Feb 2006 21:20:28 +0000 (21:20 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10784 65c4cc65-6c06-0410-ace0-fbb531ad65f3

logger.c

index d0fe128..dd5301d 100644 (file)
--- a/logger.c
+++ b/logger.c
@@ -836,7 +836,7 @@ void ast_backtrace(void)
        void **addresses;
        char **strings;
 
-       addresses = calloc(levels, sizeof(void *));
+       addresses = calloc(20, sizeof(void *));
        if (addresses) {
                count = backtrace(addresses, 20);
                strings = backtrace_symbols(addresses, count);