Skip to content

Commit

Permalink
lib/slre: remove superfluous assignment
Browse files Browse the repository at this point in the history
The value assigned to saved_offset is never used.

The problem was indicated by clang scan-build.

Signed-off-by: Heinrich Schuchardt <[email protected]>
  • Loading branch information
xypron authored and trini committed May 12, 2017
1 parent c42640c commit b8865e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/slre.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ loop_greedy(const struct slre *r, int pc, const char *s, int len, int *ofs)
{
int saved_offset, matched_offset;

saved_offset = matched_offset = *ofs;
matched_offset = *ofs;

while (match(r, pc + 2, s, len, ofs, NULL)) {
saved_offset = *ofs;
Expand Down

0 comments on commit b8865e6

Please sign in to comment.