view libpurple/protocols/zephyr/ZFreeNot.c @ 26920:c9ac5cc1e46c

Fix a crash when <NICKNAME/> is present in a vcard, but has no data. Fixes MacinEnterprise's crash on Adium#12053 (unrelated to the rest of the ticket).
author Paul Aurich <paul@darkrain42.org>
date Wed, 20 May 2009 15:59:04 +0000
parents 5fe8042783c1
children a8cc50c2279f
line wrap: on
line source

/* This file is part of the Project Athena Zephyr Notification System.
 * It contains source for the ZFreeNotice function.
 *
 *	Created by:	Robert French
 *
 *	Copyright (c) 1987 by the Massachusetts Institute of Technology.
 *	For copying and distribution information, see the file
 *	"mit-copyright.h". 
 */

#include "internal.h"

Code_t ZFreeNotice(notice)
    ZNotice_t *notice;
{
    free(notice->z_packet);
    return 0;
}