Mercurial > vim
changeset 35312:98f32075873c v9.1.0458
patch 9.1.0458: Coverity complains about division by zero
Commit: https://github.com/vim/vim/commit/7737ce519b9cba8ef135154d76b69f715b1a0b4d
Author: Christian Brabandt <cb@256bit.org>
Date: Sun Jun 2 16:04:43 2024 +0200
patch 9.1.0458: Coverity complains about division by zero
Problem: Coverity complains about division by zero
Solution: Check explicitly for sw_val being zero
Shouldn't happen, since tabstop value should always be larger than zero.
So just add this as a safety measure.
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 02 Jun 2024 16:15:04 +0200 |
parents | f49669961601 |
children | c1ad72b13017 |
files | src/ops.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff