[ccan] [PATCH 06/10] ccan_tokenizer: avoid dead store
Brad Hards
bradh at frogmouth.net
Tue Mar 8 20:28:09 EST 2011
obe is always overwritten later.
---
ccan/ccan_tokenizer/ccan_tokenizer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ccan/ccan_tokenizer/ccan_tokenizer.c b/ccan/ccan_tokenizer/ccan_tokenizer.c
index 47282e9..4310151 100644
--- a/ccan/ccan_tokenizer/ccan_tokenizer.c
+++ b/ccan/ccan_tokenizer/ccan_tokenizer.c
@@ -707,7 +707,7 @@ static int txt_orig_matches(const char *txt, size_t txt_size, const char *orig,
do {
const char *ob = os; //start of next backslash break
- const char *obe = os; //end of next backslash break
+ const char *obe; //end of next backslash break
size_t size; //amount of text to compare for this round
while (ob<oe && *ob!='\\') ob++;
--
1.7.1
More information about the ccan
mailing list