aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:41 (GMT)
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:41 (GMT)
commitd58cbc3c5392e7bacd75c61bfbf9e2bcd2850ae9 (patch)
tree365c612056dc212c8bc7faf636c04aea02d2b7fc /common
parent291d7b864be127f1fe78138b5fe476387d18f1ba (diff)
v3.92
Diffstat (limited to 'common')
-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