]> granicus.if.org Git - clang/commitdiff
[analyzer] Remove extra assignment that actually lost a few of the assumptions.
authorJordy Rose <jediknil@belkadan.com>
Sat, 4 Jun 2011 01:22:21 +0000 (01:22 +0000)
committerJordy Rose <jediknil@belkadan.com>
Sat, 4 Jun 2011 01:22:21 +0000 (01:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132614 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/CStringChecker.cpp

index 3e1866607a8554f51a399c2fd7fdba8d78751166..d9e49e4c4778df543ec20db08564ae4f6dc76fa7 100644 (file)
@@ -737,7 +737,6 @@ void CStringChecker::evalCopyCommon(CheckerContext &C,
       return;
 
     // Ensure the buffers do not overlap.
-    state = stateNonZeroSize;
     state = CheckBufferAccess(C, state, Size, Dest, Source,
                               /* FirstIsDst = */ true);
     if (Restricted)