From 40f45ab770648036b1dcd2ca166c70d95ca35f17 Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Sun, 17 Apr 2011 19:05:33 -0400 Subject: [PATCH] Fix uninitialized variable warning in atr_tab.c --- src/atr_tab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/atr_tab.c b/src/atr_tab.c index 5e6108c..0330726 100644 --- a/src/atr_tab.c +++ b/src/atr_tab.c @@ -539,7 +539,8 @@ list_attribs(void) ap = (ATTR *) ptab_nextentry(&ptab_attrib); } bp = buff; - safe_str(ptrs[0], buff, &bp); + if (ptrs[0]) + safe_str(ptrs[0], buff, &bp); for (i = 1; i < nptrs; i++) { safe_chr(' ', buff, &bp); safe_str(ptrs[i], buff, &bp); -- 2.30.2