Mercurial > vim
comparison src/ex_cmds2.c @ 14208:4cb334816bb1 v8.1.0121
patch 8.1.0121: crash when using ballooneval related to 'vartabstop'
commit https://github.com/vim/vim/commit/ca4b613c692b927c9345dc9e3d6be5de35266be2
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 28 12:05:11 2018 +0200
patch 8.1.0121: crash when using ballooneval related to 'vartabstop'
Problem: Crash when using ballooneval related to 'vartabstop'.
Solution: Initialize balloonEval->vts to NULL. (Markus Braun)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 28 Jun 2018 12:15:06 +0200 |
parents | eadecbe4e390 |
children | 3c80092eb211 |
comparison
equal
deleted
inserted
replaced
14207:72a425590918 | 14208:4cb334816bb1 |
---|---|
1417 if (this_due <= 1) | 1417 if (this_due <= 1) |
1418 { | 1418 { |
1419 bevalexpr_due_set = FALSE; | 1419 bevalexpr_due_set = FALSE; |
1420 if (balloonEval == NULL) | 1420 if (balloonEval == NULL) |
1421 { | 1421 { |
1422 balloonEval = (BalloonEval *)alloc(sizeof(BalloonEval)); | 1422 balloonEval = (BalloonEval *)alloc_clear(sizeof(BalloonEval)); |
1423 balloonEvalForTerm = TRUE; | 1423 balloonEvalForTerm = TRUE; |
1424 } | 1424 } |
1425 if (balloonEval != NULL) | 1425 if (balloonEval != NULL) |
1426 general_beval_cb(balloonEval, 0); | 1426 general_beval_cb(balloonEval, 0); |
1427 } | 1427 } |