Replace alloc() with xmalloc() and remove immediate OOM checks

This commit is contained in:
Felipe Oliveira Carvalho
2014-05-09 03:30:26 -03:00
parent a80d7e86c1
commit 21784aeb00
42 changed files with 413 additions and 640 deletions

View File

@@ -4692,9 +4692,9 @@ win_redr_status_matches (
return;
if (has_mbyte)
buf = alloc((unsigned)Columns * MB_MAXBYTES + 1);
buf = xmalloc(Columns * MB_MAXBYTES + 1);
else
buf = alloc((unsigned)Columns + 1);
buf = xmalloc(Columns + 1);
if (match == -1) { /* don't show match but original text */
match = 0;