Skip to content

Commit 925f62e

Browse files
back to !BUFF style of alloc checking
1 parent 4a930d6 commit 925f62e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fwrite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ void fwriteMain(fwriteMainArgs args)
820820
DTPRINT(_("Allocate %zu bytes (%zu MiB) for zbuffPool\n"), alloc_size, alloc_size / MEGA);
821821
}
822822
zbuffPool = malloc(alloc_size);
823-
if (zbuffPool == NULL) {
823+
if (!zbuffPool) {
824824
// # nocov start
825825
free(buffPool);
826826
STOP(_("Unable to allocate %zu MiB * %d thread compressed buffers; '%d: %s'. Please read ?fwrite for nThread, buffMB and verbose options."),

0 commit comments

Comments
 (0)