summaryrefslogtreecommitdiffstats
path: root/lib/log.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-05-06 20:18:01 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-29 20:02:57 +0200
commitaa0e96ed1c148aa5d5d91ba64a1ecb73282190a8 (patch)
tree5619ecce02abf1551556fafa1c48047f0e8ceb17 /lib/log.c
parentzebra: fix maybe-uninitialized pointer (diff)
downloadfrr-aa0e96ed1c148aa5d5d91ba64a1ecb73282190a8.tar.xz
frr-aa0e96ed1c148aa5d5d91ba64a1ecb73282190a8.zip
lib: fix uninitialized variable in backtrace output
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--lib/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/log.c b/lib/log.c
index e64c00186..5e3064a8d 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -602,6 +602,8 @@ void zlog_backtrace_sigsafe(int priority, void *program_counter)
backtrace_symbols_fd(array, size, FD); \
}
#elif defined(HAVE_PRINTSTACK)
+ size = 0;
+
#define DUMP(FD) \
{ \
if (program_counter) \