Merge pull request #1684 from justinmk/coverity74717

[RFC] coverity/74717: FP: NULL Pointer Dereference
This commit is contained in:
Justin M. Keyes 2014-12-26 10:08:52 -05:00
commit cab88790bc

View File

@ -268,6 +268,7 @@ static int shell(const char *cmd,
static void dynamic_buffer_ensure(DynamicBuffer *buf, size_t desired)
{
if (buf->cap >= desired) {
assert(buf->data);
return;
}