commit | 37cf413e3e768b76c975e4a7081472d75d649c72 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Jan 27 20:47:03 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Jan 27 20:47:03 2022 +0000 |
tree | e3f24a7a0848805b4e787f1abd0de61ce029d0af | |
parent | b3d83980d2ac0f7a25314270416f17af874ca269 [diff] [blame] |
patch 8.2.4235: invalid check for NULL pointer Problem: Invalid check for NULL pointer. Solution: Remove the check.
diff --git a/src/getchar.c b/src/getchar.c index 49eb3d7..6602eea 100644 --- a/src/getchar.c +++ b/src/getchar.c
@@ -254,7 +254,7 @@ { int len; - if (buf->bh_curr == NULL || buf->bh_curr->b_str == NULL) + if (buf->bh_curr == NULL) return; // nothing to delete len = (int)STRLEN(buf->bh_curr->b_str); if (len >= slen)