diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-04-22 22:54:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-04-22 22:54:40 +0100 |
commit | f39d9e9dca443e42920066be3a98fd9780e4ed33 (patch) | |
tree | fc55b4f846fe60b7bb21613b26b796fba38eff1b /src/getchar.c | |
parent | 71badf9547e8f89571b9a095183671cbb333d528 (diff) |
patch 9.0.1479: small source file problems; outdated list of distrib. filesv9.0.1479
Problem: Small source file problems; outdated list of distributed files.
Solution: Small updates to source files and list of distributed files.
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/getchar.c b/src/getchar.c index 125f0b0aad..6817fa5b83 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -133,7 +133,7 @@ get_buffcont( for (bp = buffer->bh_first.b_next; bp != NULL; bp = bp->b_next) count += (long_u)STRLEN(bp->b_str); - if ((count || dozero) && (p = alloc(count + 1)) != NULL) + if ((count > 0 || dozero) && (p = alloc(count + 1)) != NULL) { p2 = p; for (bp = buffer->bh_first.b_next; bp != NULL; bp = bp->b_next) @@ -141,7 +141,7 @@ get_buffcont( *p2++ = *str++; *p2 = NUL; } - return (p); + return p; } /* |