ref: 3fcbd9c5f99121e11e85a3645f2c13db1fad466f
parent: 3ab79a07e5513162376890eb5381d3c993a08bae
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Apr 23 14:25:19 EDT 2015
lib9p: handle erealloc9p(..., 0)
--- a/sys/src/lib9p/mem.c
+++ b/sys/src/lib9p/mem.c
@@ -24,7 +24,7 @@
{void *nv;
- if((nv = realloc(v, sz)) == nil) {+ if((nv = realloc(v, sz)) == nil && sz != 0) {fprint(2, "out of memory allocating %lud\n", sz);
exits("mem");}
--
⑨