src/buffer.c

changeset 673
60fb6aec157d
parent 650
77021e06b1a8
child 683
aa0d09f2d81c
     1.1 --- a/src/buffer.c	Sat Apr 01 11:51:48 2023 +0200
     1.2 +++ b/src/buffer.c	Mon Apr 03 19:09:31 2023 +0200
     1.3 @@ -39,6 +39,7 @@
     1.4          CxAllocator const *allocator,
     1.5          int flags
     1.6  ) {
     1.7 +    if (allocator == NULL) allocator = cxDefaultAllocator;
     1.8      buffer->allocator = allocator;
     1.9      buffer->flags = flags;
    1.10      if (!space) {

mercurial