gatchat: Fix missing return value for g_at_chat_set_slave

This commit is contained in:
Marcel Holtmann 2010-10-21 20:34:13 +02:00
parent cca0782029
commit 79e23355a4
1 changed files with 1 additions and 1 deletions

View File

@ -1314,7 +1314,7 @@ GAtChat *g_at_chat_clone(GAtChat *clone)
GAtChat *g_at_chat_set_slave(GAtChat *chat, GAtChat *slave)
{
if (chat == NULL)
return;
return NULL;
if (chat->slave != NULL)
g_at_chat_unref(chat->slave);