mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
(mc_deserialize_str): trivial optimization.
Signed-off-by: Andrew V. Samoilov <a.samoilov@gmail.com>
This commit is contained in:
parent
de242255dc
commit
af8b0ce339
@ -133,7 +133,7 @@ mc_deserialize_str (const char prefix, const char *data, GError ** error)
|
|||||||
{
|
{
|
||||||
size_t data_len;
|
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.");
|
g_set_error (error, MC_ERROR, 0, FUNC_NAME ": Input data is NULL or empty.");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user