summaryrefslogtreecommitdiff
path: root/src/Attrib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Attrib.c')
-rw-r--r--src/Attrib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Attrib.c b/src/Attrib.c
index c6b34d6..a6feb52 100644
--- a/src/Attrib.c
+++ b/src/Attrib.c
@@ -133,7 +133,7 @@ XpmFreeExtensions(extensions, nextensions)
XpmFree(ext->name);
nlines = ext->nlines;
for (j = 0, sptr = ext->lines; j < nlines; j++, sptr++)
- if (*sptr)
+ if (sptr && *sptr)
XpmFree(*sptr);
if (ext->lines)
XpmFree(ext->lines);