Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format source
Browse files Browse the repository at this point in the history
e0ff committed Aug 11, 2018
1 parent 763cc7a commit 0c88cd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toxcore/Messenger.c
Original file line number Diff line number Diff line change
@@ -2926,7 +2926,8 @@ static uint32_t m_state_plugins_size(const Messenger *m)
bool m_register_state_plugin(Messenger *m, Messenger_State_Type type, m_state_size_cb size_cb, m_state_load_cb load_cb,
m_state_save_cb save_cb)
{
Messenger_State_Plugin *temp = (Messenger_State_Plugin *) realloc(m->options.state_plugins, sizeof(Messenger_State_Plugin) * (m->options.state_plugins_length + 1));
Messenger_State_Plugin *temp = (Messenger_State_Plugin *) realloc(m->options.state_plugins,
sizeof(Messenger_State_Plugin) * (m->options.state_plugins_length + 1));

if (!temp) {
return false;

0 comments on commit 0c88cd6

Please sign in to comment.