Compilation fixes.

This commit is contained in:
Ghislain MARY 2017-01-04 10:16:18 +01:00
parent bf849dd3fa
commit b2df3b492e
2 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@ liblinphone_la_SOURCES=\
event.c \
friend.c \
friendlist.c \
im_notify_policy.c \
im_notif_policy.c \
info.c \
ldapprovider.c \
linphonecall.c \

View file

@ -419,7 +419,7 @@ static int linphone_chat_room_get_messages_count(LinphoneChatRoom *cr, bool_t un
int numrows=0;
char *peer;
char *buf;
char *option;
char *option = NULL;
sqlite3_stmt *selectStatement;
int returnValue;
@ -447,7 +447,7 @@ static int linphone_chat_room_get_messages_count(LinphoneChatRoom *cr, bool_t un
* because it has been tested above */
if(unread_only) {
cr->unread_count = numrows;
bctbx_free(option);
if (option) bctbx_free(option);
}
return numrows;