Merge #708 'Remove NULL/non-NULL tests after vim_str(n)save'

- replace alloc with xmalloc
This commit is contained in:
Justin M. Keyes
2014-05-22 12:50:59 -04:00
55 changed files with 937 additions and 1643 deletions

View File

@@ -229,7 +229,7 @@ coladvance2 (
if (line[idx] == NUL) {
/* Append spaces */
int correct = wcol - col;
char_u *newline = alloc(idx + correct + 1);
char_u *newline = xmalloc(idx + correct + 1);
int t;
for (t = 0; t < idx; ++t)
@@ -255,7 +255,7 @@ coladvance2 (
if (-correct > csize)
return FAIL;
newline = alloc(linelen + csize);
newline = xmalloc(linelen + csize);
for (t = 0; t < linelen; t++) {
if (t != idx)