(mc_deserialize_str): trivial optimization.

Signed-off-by: Andrew V. Samoilov <a.samoilov@gmail.com>
This commit is contained in:
Andrew V. Samoilov 2018-01-26 21:52:22 +02:00 committed by Andrew Borodin
parent de242255dc
commit af8b0ce339

View File

@ -133,7 +133,7 @@ mc_deserialize_str (const char prefix, const char *data, GError ** error)
{
size_t data_len;
if ((data == NULL) || (strlen (data) == 0))
if ((data == NULL) || (*data == '\0'))
{
g_set_error (error, MC_ERROR, 0, FUNC_NAME ": Input data is NULL or empty.");
return NULL;