From ebcae5b13073f8946827353028d628c0298e5af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Stensg=C3=A5rd?= Date: Sun, 6 May 2018 12:38:11 +0200 Subject: [PATCH] stb_textedit: remove double initialization `clang-scan` found this --- stb_textedit.h | 1 - 1 file changed, 1 deletion(-) diff --git a/stb_textedit.h b/stb_textedit.h index 91a52da..0b08e1a 100644 --- a/stb_textedit.h +++ b/stb_textedit.h @@ -558,7 +558,6 @@ static void stb_textedit_find_charpos(StbFindState *find, STB_TEXTEDIT_STRING *s // now scan to find xpos find->x = r.x0; - i = 0; for (i=0; first+i < n; ++i) find->x += STB_TEXTEDIT_GETWIDTH(str, first, i); }