summaryrefslogtreecommitdiff
path: root/common/button_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/button_cmd.c')
-rw-r--r--common/button_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/button_cmd.c b/common/button_cmd.c
index b6a8434d6f2..8642c26735c 100644
--- a/common/button_cmd.c
+++ b/common/button_cmd.c
@@ -33,7 +33,7 @@ struct button_cmd {
static int get_button_cmd(int n, struct button_cmd *cmd)
{
const char *cmd_str;
- struct udevice *btn;
+ struct udevice *btn = NULL;
char buf[24];
snprintf(buf, sizeof(buf), "button_cmd_%d_name", n);