Mercurial > vim
comparison src/window.c @ 31186:433e92a6efb0 v9.0.0927
patch 9.0.0927: Coverity warns for using a NULL pointer
Commit: https://github.com/vim/vim/commit/96cbbe29debba25d7eec8d01955c5ac01f5c420d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 23 11:36:22 2022 +0000
patch 9.0.0927: Coverity warns for using a NULL pointer
Problem: Coverity warns for using a NULL pointer.
Solution: Check for memory allocaion failure.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 23 Nov 2022 12:45:05 +0100 |
parents | b7e381d7e8b8 |
children | 02b719cd27c6 |
comparison
equal
deleted
inserted
replaced
31185:a7543f655304 | 31186:433e92a6efb0 |
---|---|
3132 } | 3132 } |
3133 restore_v_event(v_event, &save_v_event); | 3133 restore_v_event(v_event, &save_v_event); |
3134 #endif | 3134 #endif |
3135 } | 3135 } |
3136 | 3136 |
3137 if (trigger_scroll) | 3137 if (trigger_scroll && scroll_dict != NULL) |
3138 { | 3138 { |
3139 #ifdef FEAT_EVAL | 3139 #ifdef FEAT_EVAL |
3140 save_v_event_T save_v_event; | 3140 save_v_event_T save_v_event; |
3141 dict_T *v_event = get_v_event(&save_v_event); | 3141 dict_T *v_event = get_v_event(&save_v_event); |
3142 | 3142 |