Commit d0064936 authored by Geoff Simmons's avatar Geoff Simmons

add a test for format.c/get_payload() for empty payloads

parent b4f67315
......@@ -107,6 +107,12 @@ static const char
get_payload(&rec);
MASSERT(strcmp(VSB_data(payload), str) == 0);
/* Empty record */
rec.len = 0;
*chunk.data = '\0';
get_payload(&rec);
MASSERT(strlen(VSB_data(payload)) == 0);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment