pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
Re-arrange jabber_buddy_resource_free to avoid use-after-free warning.
2019-11-05, Elliott Sales de Andrade
27c5004a6c65
Re-arrange jabber_buddy_resource_free to avoid use-after-free warning.
scan-build doesn't recognize the effect of g_list_remove, but this seems
a bit cleaner anyway.
/*
* Header file for common error description library.
*
* Copyright 1988, Student Information Processing Board of the
* Massachusetts Institute of Technology.
*
* For copyright and distribution info, see the documentation supplied
* with this package.
*/
#ifndef PURPLE_ZEPHYR_COM_ERR_H
#define PURPLE_ZEPHYR_COM_ERR_H
#define COM_ERR_BUF_LEN 25
#include
<stdarg.h>
typedef
void
(
*
error_handler_t
)(
const
char
*
,
long
,
const
char
*
,
va_list
);
extern
error_handler_t
com_err_hook
;
void
com_err
(
const
char
*
,
long
,
const
char
*
,
...);
const
char
*
error_message
(
long
);
const
char
*
error_message_r
(
long
,
char
*
);
error_handler_t
set_com_err_hook
(
error_handler_t
);
error_handler_t
reset_com_err_hook
(
void
);
#endif
/* PURPLE_ZEPHYR_COM_ERR_H */