From ce7473d4b39e76aa45e89a9de4956658cbd123db Mon Sep 17 00:00:00 2001 From: Gary Buhrmaster Date: Sun, 9 Jun 2013 21:07:08 +0000 Subject: [PATCH] Patch for dead assignment Static analysis (coverity) identified a dead assignment of the variable end. Remove the assignment to make static analysis happy. Fixes coverity 1025913. Fixes #11583 --- mythtv/libs/libmythui/lirc_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythtv/libs/libmythui/lirc_client.c b/mythtv/libs/libmythui/lirc_client.c index 68a98a01335..bbef2678c52 100644 --- a/mythtv/libs/libmythui/lirc_client.c +++ b/mythtv/libs/libmythui/lirc_client.c @@ -1865,7 +1865,7 @@ int lirc_nextcode(struct lirc_state *state, char **code) end_len+=len; state->lirc_buffer[end_len]=0; /* return if next code not yet available completely */ - if((end=strchr(state->lirc_buffer,'\n'))==NULL) + if(strchr(state->lirc_buffer,'\n')==NULL) { return(0); }