Fix a few llvm scanner issues - pointer is null and dead assignment

llvm's scan-build likes to check object is not null before calling
method and removed one dead assignment.
(cherry picked from commit 1be837a6aa)
This commit is contained in:
Kurt Hindenburg
2013-09-19 12:53:44 -04:00
parent b820dbf715
commit a07533a91d
2 changed files with 10 additions and 7 deletions

View File

@@ -1896,7 +1896,6 @@ void SearchHistoryTask::executeOnScreenWindow(SessionPtr session , ScreenWindowP
// line number search below assumes that the buffer ends with a new-line
string.append('\n');
pos = -1;
if (forwards)
pos = string.indexOf(_regExp);
else