summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Naumov <alexander_naumov@opensuse.org>2017-01-21 02:31:50 +0100
committerAlexander Naumov <alexander_naumov@opensuse.org>2017-01-21 02:31:50 +0100
commitbd37ae4f27c02fc103ba14e5103ed92cc58488a4 (patch)
treed4d52adb2ef21cb497dabeac38396f8c7ecf4c5d
parent5c3d9d4b20732bac4b3a6f6f2f95ea03e63b8782 (diff)
downloadscreen-bd37ae4f27c02fc103ba14e5103ed92cc58488a4.tar.gz
Value stored to 'i' during its initialization is never read
i.e. we initialize 'i' twice (next line)
-rw-r--r--src/display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display.c b/src/display.c
index 0915c9a..db8cb19 100644
--- a/src/display.c
+++ b/src/display.c
@@ -3445,7 +3445,7 @@ char *data;
if (D_mouse && D_forecv)
{
unsigned char *bp = (unsigned char *)buf;
- int x, y, i = size;
+ int x, y, i;
/* XXX this assumes that the string is read in as a whole... */
for (i = size; i > 0; i--, bp++)