1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

Update write-buffer.c

This commit is contained in:
ihsinme 2021-02-08 12:17:09 +03:00 committed by GitHub
parent 95f131da2d
commit 23e4bfa1db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,14 +63,14 @@ int write_buffer(int handle, const void *data, int size)
const char *cdata = data;
int next_size;
if (size <= 0)
return size;
if (write_buffer_max_blocks <= 0) {
/* no write buffer */
return write(handle, data, size);
}
if (size <= 0)
return size;
rec = g_hash_table_lookup(buffers, GINT_TO_POINTER(handle));
if (rec == NULL) {
rec = g_new0(BUFFER_REC, 1);