libpurple/protocols/zephyr/ZFreeNot.c

Tue, 05 Nov 2019 21:07:41 -0500

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Tue, 05 Nov 2019 21:07:41 -0500
changeset 40150
eda298799a8e
parent 31294
73607ab89c6f
child 40166
811f82db29dd
permissions
-rw-r--r--

Add some NULL checks to silence scan-build.

/* 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;
}

mercurial