aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common.cpp
diff options
context:
space:
mode:
authorGravatar Aaron Gyes <me@aaron.gy>2016-06-14 19:21:50 -0700
committerGravatar Aaron Gyes <me@aaron.gy>2016-06-14 19:27:00 -0700
commit9f0c31611c189b7685cd5a818330ce36a9774eeb (patch)
treeef3d7e170b95e09cfdb279f5c3971654a07bef49 /src/common.cpp
parentd70be18c4255829b3b6bc3d71b791740a9bba6ac (diff)
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.
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp2
1 files changed, 1 insertions, 1 deletions
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);