]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/bigalloc.c
ucw. docs: document single-line doc. comments
[libucw.git] / ucw / bigalloc.c
index 7532a446239bb11b320455a7059f63053c8be306..3133170e5f6921dd86e5aaa893a0b3769c411a64 100644 (file)
@@ -17,6 +17,8 @@
 void *
 page_alloc(u64 len)
 {
+  if (!len)
+    return NULL;
   if (len > SIZE_MAX)
     die("page_alloc: Size %llu is too large for the current architecture", (long long) len);
   ASSERT(!(len & (CPU_PAGE_SIZE-1)));