]> git.lyx.org Git - features.git/blobdiff - src/text.C
fix uninitialized variable
[features.git] / src / text.C
index 9b1f3ffd242bbc934871af18e9f3345af9e177c6..9b37eaa07c0a71f5cce98b0242d1c3227177b15a 100644 (file)
@@ -1094,7 +1094,7 @@ void LyXText::changeCase(LCursor & cur, LyXText::TextCase action)
 
        bool const trackChanges = cur.buffer().params().trackChanges;
 
-       pos_type right; // needed after the for loop
+       pos_type right = 0; // needed after the for loop
 
        for (pit_type pit = begPit; pit <= endPit; ++pit) {
                pos_type parSize = pars_[pit].size();