sms-part: beware of NULL input data

This commit is contained in:
Aleksander Morgado
2012-09-06 17:32:33 +02:00
parent 98f588867c
commit 163e167543

View File

@@ -365,7 +365,7 @@ mm_sms_part_set_data (MMSmsPart *self,
{ {
if (self->data) if (self->data)
g_byte_array_unref (self->data); g_byte_array_unref (self->data);
self->data = g_byte_array_ref (value); self->data = (value ? g_byte_array_ref (value) : NULL);
} }
void void