projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4b4056
)
Fix uninitialized variable warning in atr_tab.c
author
Ari Johnson
<ari@theari.com>
Sun, 17 Apr 2011 23:05:33 +0000
(19:05 -0400)
committer
Ari Johnson
<ari@theari.com>
Sun, 17 Apr 2011 23:05:33 +0000
(19:05 -0400)
src/atr_tab.c
patch
|
blob
|
history
diff --git
a/src/atr_tab.c
b/src/atr_tab.c
index 5e6108c009d31e78174b23311bc875eeffa70cf4..033072627980fb75980636f54911f59ae21794c8 100644
(file)
--- 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);