From 9f0c31611c189b7685cd5a818330ce36a9774eeb Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Tue, 14 Jun 2016 19:21:50 -0700 Subject: Lint Cleanup This remove some stores that clang assures me are very dead. And an assert() for an unlikely NULL pointer dereference I can't quite figure out. --- src/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common.cpp') diff --git a/src/common.cpp b/src/common.cpp index 49f53fb5..fcbb2465 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -749,7 +749,7 @@ wcstring reformat_for_screen(const wcstring &msg) { // If token is zero character long, we don't do anything. if (pos == start) { - start = pos = pos + 1; + pos = pos + 1; } else if (overflow) { // In case of overflow, we print a newline, except if we already are at position 0. wchar_t *token = wcsndup(start, pos - start); -- cgit v1.2.3