From fa3a01c486d73315d616a620104e755d663bb425 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 19:45:07 +0100 Subject: [PATCH] selOps.c: warning: variable 'type' is used uninitialized selOps.c:1942:11: warning: variable 'type' is used uninitialized whenever 'if' condition is false clang18 -Wall warning cleanup [-Wsometimes-uninitialized] --- select/selOps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/select/selOps.c b/select/selOps.c index 422a5582..f620e15d 100644 --- a/select/selOps.c +++ b/select/selOps.c @@ -1942,6 +1942,8 @@ selStretchFillFunc3(tile, area) else if (selStretchY < 0) type = (SplitDirection(tile) ? SplitLeftType(tile) : SplitRightType(tile)); + else + type = TT_SPACE; if (type == TT_SPACE) return 0; /* nothing to stretch */ } else