Mercurial > vim
comparison src/version.c @ 15758:675dd5d7afb3 v8.1.0886
patch 8.1.0886: compiler warning for NULL pointer and condition always true
commit https://github.com/vim/vim/commit/b7633611611eeb5f14f8fd598afa687964e23f23
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 10 21:48:25 2019 +0100
patch 8.1.0886: compiler warning for NULL pointer and condition always true
Problem: Compiler warning for adding to NULL pointer and a condition that
is always true.
Solution: Check for NULL pointer before adding. Remove useless "if".
(Friedirch, closes #3913)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 Feb 2019 22:00:07 +0100 |
parents | e43f30c5bad8 |
children | aa80c63f34bb |
comparison
equal
deleted
inserted
replaced
15757:9c8c31c75022 | 15758:675dd5d7afb3 |
---|---|
781 NULL | 781 NULL |
782 }; | 782 }; |
783 | 783 |
784 static int included_patches[] = | 784 static int included_patches[] = |
785 { /* Add new patch number below this line */ | 785 { /* Add new patch number below this line */ |
786 /**/ | |
787 886, | |
786 /**/ | 788 /**/ |
787 885, | 789 885, |
788 /**/ | 790 /**/ |
789 884, | 791 884, |
790 /**/ | 792 /**/ |