From 700aa97045e722ede857d7eaebaf8b6f3806c17e Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Tue, 21 May 2024 11:29:52 +0100 Subject: [PATCH] wmclockmon: fix assignment Signed-off-by: Jeremy Sowden --- wmclockmon/wmclockmon-cal/mainwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wmclockmon/wmclockmon-cal/mainwindow.c b/wmclockmon/wmclockmon-cal/mainwindow.c index d3825c5..2246daa 100644 --- a/wmclockmon/wmclockmon-cal/mainwindow.c +++ b/wmclockmon/wmclockmon-cal/mainwindow.c @@ -135,7 +135,8 @@ static void toggle_buttons(int button) { static void to_button(int button) { - if (dateb == 0) dateb == button; + if (dateb == 0) + dateb = button; if (button != dateb) { int b = dateb; dateb = button; -- 2.11.4.GIT