diff options
author | Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> | 2010-04-13 14:47:30 +0100 |
---|---|---|
committer | Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> | 2010-04-26 11:50:20 +0100 |
commit | 1de76118ee5abeec04058e0f4ff7cab91d423fac (patch) | |
tree | 6a799762e0513a95b5629051c6e1f95808a03076 | |
parent | 2610d2c09823f4145f5f3e86f3f5a1861de5dac4 (diff) |
check for sanity of @data in tpl_log_entry_text_set_message
allow emtpy strings (in case of empty messages) but now a NULL pointer.
-rw-r--r-- | telepathy-logger/log-entry-text.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/telepathy-logger/log-entry-text.c b/telepathy-logger/log-entry-text.c index 447fb754a..577081fc0 100644 --- a/telepathy-logger/log-entry-text.c +++ b/telepathy-logger/log-entry-text.c @@ -296,6 +296,7 @@ tpl_log_entry_text_set_message (TplLogEntryText *self, TplLogEntryTextPriv *priv; g_return_if_fail (TPL_IS_LOG_ENTRY_TEXT (self)); + g_return_if_fail (data != NULL); /* allow zero lenght */ priv = self->priv; |