aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 855c62a1d..c05060865 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -190,6 +190,10 @@ const char *UndoHistory::AppendAction(actionType at, int position, const char *d
}
// See if current action can be coalesced into previous action
// Will work if both are inserts or deletes and position is same
+#if defined(_MSC_VER) && defined(_PREFAST_)
+ // Visual Studio 2013 Code Analysis wrongly believes actions can be NULL at its next reference
+ __analysis_assume(actions);
+#endif
if (currentAction == savePoint) {
currentAction++;
} else if (!actions[currentAction].mayCoalesce) {