aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/volume.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/volume.c b/components/volume.c
index 6cec556..5a2bfb7 100644
--- a/components/volume.c
+++ b/components/volume.c
@@ -89,6 +89,8 @@
if (c->addr == addr)
break;
}
+ if (c == NULL)
+ return;
c->val = val;
}