blob object constructor should use the static null_blob when blob length = 0 #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently the blob constructor creates a BLOB whose priv pointer is NULL when the encoding is the empty string:
An empty BLOB is a legitimate object, but priv==NULL does not play well with other VMODs expecting a BLOB.
The static
null_blob, whose priv pointer points to the static constant empty string, was created for this purpose, and is returned by thedecodefunction when the encoding is the empty string. The constructor should use it as well.