aboutsummaryrefslogtreecommitdiffstats
path: root/common/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/commands.c')
-rw-r--r--common/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/commands.c b/common/commands.c
index bf633a9..883452b 100644
--- a/common/commands.c
+++ b/common/commands.c
@@ -464,7 +464,7 @@ attr_init(void)
struct ng_attribute *attr;
int val;
- for (attr = attrs; attr->name != NULL; attr++) {
+ for (attr = attrs; attr != NULL && attr->name != NULL; attr++) {
if (attr->id == ATTR_ID_VOLUME ||
attr->id == ATTR_ID_MUTE)
continue;

Privacy Policy