diff options
Diffstat (limited to 'libempathy/empathy-message.c')
-rw-r--r-- | libempathy/empathy-message.c | 4 |
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; } |