Mercurial > pidgin
changeset 24887:cb274396158c
merge of '409aaedc8836828692279141224e2077ffd4a80f'
and '90a5f93a4d969a242378420c9e060c5d49e35917'
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 01 Jan 2009 03:47:26 +0000 |
parents | 647684cdbbac (diff) c6cadb7bdcf7 (current diff) |
children | a6742d9eadf3 |
files | |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/value.c Thu Jan 01 03:12:56 2009 +0000 +++ b/libpurple/value.c Thu Jan 01 03:47:26 2009 +0000 @@ -320,6 +320,7 @@ purple_value_set_string(PurpleValue *value, const char *data) { g_return_if_fail(value != NULL); + g_return_if_fail(data == NULL || g_utf8_validate(data, -1, NULL)); g_free(value->data.string_data); value->data.string_data = g_strdup(data);