--- src/sbin/jscan/jstream.c 2005/09/06 18:43:52 1.6 +++ src/sbin/jscan/jstream.c 2005/09/06 22:33:00 1.7 @@ -221,6 +221,8 @@ jsreadp(struct jstream *js, off_t off, c free(js->js_alloc_buf); js->js_alloc_buf = malloc(bytes); js->js_alloc_size = bytes; + if (js->js_alloc_buf == NULL) + fprintf(stderr, "attempt to allocate %d bytes failed\n", bytes); assert(js->js_alloc_buf != NULL); } error = jsread(js, off, js->js_alloc_buf, bytes);