bytestring: Allow bytestring_from_string to be called on NULL
Currently, calling bytestring_from_string(NULL) will result in a SEGV
within strlen(). This patch makes this construct safe, returning
bytestring_NULL, which seems a less surprising result.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Showing
Please register or sign in to comment