mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 06:11:03 +00:00
Fix null check typo
This commit is contained in:
+1
-1
@@ -322,7 +322,7 @@ static int sendMessageEnet(short ptype, short paylen, const void* payload) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enetPacket = enet_packet_create(packet, sizeof(*packet) + paylen, ENET_PACKET_FLAG_RELIABLE);
|
enetPacket = enet_packet_create(packet, sizeof(*packet) + paylen, ENET_PACKET_FLAG_RELIABLE);
|
||||||
if (packet == NULL) {
|
if (enetPacket == NULL) {
|
||||||
free(packet);
|
free(packet);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user