aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-message.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-01-10 00:14:40 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-10 00:14:40 +0800
commit2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39 (patch)
treed201b96df25bced5a10b833c88348d4575ab694e /libempathy/empathy-message.c
parentbdbc83f39d0a0909d1a4a0c052969f0d6e65d511 (diff)
downloadgsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.tar
gsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.tar.gz
gsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.tar.bz2
gsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.tar.lz
gsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.tar.xz
gsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.tar.zst
gsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.zip
Style fixes
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2174
Diffstat (limited to 'libempathy/empathy-message.c')
-rw-r--r--libempathy/empathy-message.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index 9835b59bc..2090ae7c2 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -37,7 +37,7 @@ typedef struct {
EmpathyContact *receiver;
gchar *body;
time_t timestamp;
- guint id;
+ guint id;
} EmpathyMessagePriv;
static void empathy_message_finalize (GObject *object);
@@ -485,6 +485,8 @@ empathy_message_get_id (EmpathyMessage *message)
{
EmpathyMessagePriv *priv = GET_PRIV (message);
+ g_return_val_if_fail (EMPATHY_IS_MESSAGE (message), 0);
+
return priv->id;
}