From 5037c1c9f404b9b3b9a6c404603f4d69d746984a Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sun, 28 Jul 2024 08:36:45 +0000 Subject: [PATCH] lvrend: fix compiler / cppcheck warning (maybe-uninitialized) (#590) --- crengine/src/lvrend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crengine/src/lvrend.cpp b/crengine/src/lvrend.cpp index 6a462a0d9..9706b59ea 100644 --- a/crengine/src/lvrend.cpp +++ b/crengine/src/lvrend.cpp @@ -10246,7 +10246,7 @@ void DrawDocument( LVDrawBuf & drawbuf, ldomNode * enode, int x0, int y0, int dx // printf("Starting 2-steps drawing at %d %s\n", cfmt.getY(), // UnicodeToLocal(ldomXPointer(child, 0).toString()).c_str()); int overflow_y = cfmt.getY() + cfmt.getHeight() + cfmt.getBottomOverflow(); - int last_two_steps_drawn_node; + int last_two_steps_drawn_node = i; for (int j=i; jgetChildNode( j );