openbsd-ports/audio/umurmur/patches/patch-src_messages_c

13 lines
473 B
Plaintext

$OpenBSD: patch-src_messages_c,v 1.2 2012/06/26 13:00:14 jasper Exp $
--- src/messages.c.orig Mon Dec 6 21:03:03 2010
+++ src/messages.c Thu Mar 31 10:50:02 2011
@@ -68,7 +69,7 @@ static void Msg_getPreamble(uint8_t *buffer, int *type
#define MAX_MSGSIZE (BUFSIZE - PREAMBLE_SIZE)
int Msg_messageToNetwork(message_t *msg, uint8_t *buffer)
{
- int len;
+ int len = 0;
uint8_t *bufptr = buffer + PREAMBLE_SIZE;
Log_debug("To net: msg type %d", msg->messageType);