summaryrefslogtreecommitdiff
path: root/src/libical
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2020-07-21 06:38:31 -0400
committerAllen Winter <allen.winter@kdab.com>2020-07-21 06:38:31 -0400
commit751c4126631bafda57f03fdd2e346ba4ab5977ca (patch)
tree795b1e28d222954bb78463c83e2e74a020470901 /src/libical
parente70adee27430474cd5c288ca8ec2de93ff05fe3e (diff)
downloadlibical-git-751c4126631bafda57f03fdd2e346ba4ab5977ca.tar.gz
various - remove set-and-used variables. found by clang-tidy
Diffstat (limited to 'src/libical')
-rw-r--r--src/libical/icalcomponent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libical/icalcomponent.c b/src/libical/icalcomponent.c
index 421d265d..dd370caa 100644
--- a/src/libical/icalcomponent.c
+++ b/src/libical/icalcomponent.c
@@ -2155,7 +2155,7 @@ icaltimezone *icalcomponent_get_timezone(icalcomponent *comp, const char *tzid)
}
/* Do a simple binary search. */
- lower = middle = 0;
+ lower = 0;
upper = comp->timezones->num_elements;
while (lower < upper) {