diff options
| author | [email protected] <[email protected]> | 2017-05-08 21:13:43 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-05-12 08:37:18 -0400 |
| commit | b8865e6bf0ed519e6a8b9634a776092a2812af9e (patch) | |
| tree | 46ad0df443f0585ea2a4adf15461aeeade3d86e6 /lib/slre.c | |
| parent | c42640c74813f5c9aa9d0d3bdad5ebd565bdfcdc (diff) | |
lib/slre: remove superfluous assignment
The value assigned to saved_offset is never used.
The problem was indicated by clang scan-build.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'lib/slre.c')
| -rw-r--r-- | lib/slre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slre.c b/lib/slre.c index f90749f8ed1..e26d344865b 100644 --- a/lib/slre.c +++ b/lib/slre.c @@ -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; |
