From: Ari Johnson Date: Sun, 17 Apr 2011 23:05:33 +0000 (-0400) Subject: Fix uninitialized variable warning in atr_tab.c X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=40f45ab770648036b1dcd2ca166c70d95ca35f17;p=cobramush.git Fix uninitialized variable warning in atr_tab.c --- 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);