summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-23 00:22:36 -0400
committerJune McEnroe <june@causal.agency>2020-07-23 00:22:36 -0400
commited7d5c0f343c369497062e354e2e8ff043a358f3 (patch)
tree5385a6f182def28da16a601cc1f17e31bcdb3552
parentAdd current topic to tab-complete so it can edited (diff)
downloadcatgirl-ed7d5c0f343c369497062e354e2e8ff043a358f3.tar.gz
catgirl-ed7d5c0f343c369497062e354e2e8ff043a358f3.zip
Initialize numHot, numWarm
For some reason gcc thinks that numWarm might be used uninitialized.
It's fine with numHot though, strangely.
-rw-r--r--ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index 69eafee..c92fb01 100644
--- a/ui.c
+++ b/ui.c
@@ -928,8 +928,8 @@ static void toggleIgnore(struct Window *window) {
 }
 
 static void showAuto(void) {
-	uint minHot = UINT_MAX, numHot;
-	uint minWarm = UINT_MAX, numWarm;
+	uint minHot = UINT_MAX, numHot = 0;
+	uint minWarm = UINT_MAX, numWarm = 0;
 	for (uint num = 0; num < windows.len; ++num) {
 		struct Window *window = windows.ptrs[num];
 		if (window->heat >= Hot) {
'>Reverse new music orderJune McEnroe 2018-04-03Add FAUVE, CocoRosieJune McEnroe 2018-04-03Add House of LeavesJune McEnroe 2018-04-03Add ChromaticsJune McEnroe 2018-04-03Add those new Arcade Fire singlesJune McEnroe 2018-04-03Add SermonJune McEnroe 2018-04-03Add Pools of LightJune McEnroe 2018-04-03Add SteroidsJune McEnroe 2018-04-03Add A Common TruthJune McEnroe 2018-04-03Add new Colin Stetson albumJune McEnroe 2018-04-03Add ForgetJune McEnroe 2018-04-03Add ArcaJune McEnroe 2018-04-03Add new DMST and Joni VoidJune McEnroe 2018-04-03Add The Body LoversJune McEnroe 2018-04-03Add some albums from recentlyJune McEnroe 2018-04-03Add Saltland Light of MercyJune McEnroe 2018-04-03Add Jessica Moss GlaciersJune McEnroe 2018-04-03Add BNNY RBBTJune McEnroe 2018-04-03Add DepthsJune McEnroe 2018-04-03Add new Saltland previewJune McEnroe 2018-04-03Add BenjiJune McEnroe 2018-04-03Add Mouth MoodsJune McEnroe 2018-04-03Add Those Who Walk AwayJune McEnroe 2018-04-03Add Some TunesJune McEnroe 2018-04-03Add Pas pire popJune McEnroe 2018-04-03Add I Give You PowerJune McEnroe 2018-04-03Add Jenny GoGoJune McEnroe 2018-04-03Add KKB Fish BowlJune McEnroe 2018-04-03Add new Avec le soleil album previewJune McEnroe 2018-04-03Add Julien Baker as recent new musicJune McEnroe 2018-04-03Add recent new musicJune McEnroe