Skip to content

Commit fa79c8c

Browse files
committed
make linters even more happy
1 parent 0afd468 commit fa79c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/freadR.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ SEXP spillConnectionToFile(SEXP connection, SEXP tempfile_path, SEXP nrows_limit
781781
// Read and write in chunks // TODO tune chunk size
782782
size_t chunk_size = 256 * 1024;
783783
char *buffer = malloc(chunk_size);
784-
if (buffer == NULL) {
784+
if (!buffer) {
785785
fclose(outfile);
786786
STOP(_("spillConnectionToFile: failed to allocate buffer"));
787787
}

0 commit comments

Comments
 (0)