Skip to content

Commit

Permalink
code: fix crash caused by improperly initialised callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
zpl-zak committed Feb 19, 2021
1 parent c187e25 commit bc88c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/enet.h
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ extern "C" {
// !
// =======================================================================//

static ENetCallbacks callbacks = { malloc, free, abort, enet_packet_create, enet_packet_destroy };
ENetCallbacks callbacks = { malloc, free, abort, enet_packet_create, enet_packet_destroy };

int enet_initialize_with_callbacks(ENetVersion version, const ENetCallbacks *inits) {
if (version < ENET_VERSION_CREATE(1, 3, 0)) {
Expand Down

0 comments on commit bc88c7d

Please sign in to comment.