aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-12-25 11:45:27 +0100
committercbdev <cb@cbcdn.com>2019-12-25 11:45:27 +0100
commit67e0226e88efd01a3f6dd60759ce6bca029967dd (patch)
tree63d4476601dfd0562dde97b4370e5fad48b94fe9
parentcedbf74db776414988621e8113f5869b29c2cb41 (diff)
downloadmidimonster-67e0226e88efd01a3f6dd60759ce6bca029967dd.tar.gz
midimonster-67e0226e88efd01a3f6dd60759ce6bca029967dd.tar.bz2
midimonster-67e0226e88efd01a3f6dd60759ce6bca029967dd.zip
Fix uninitialized variable
-rw-r--r--backends/maweb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/maweb.c b/backends/maweb.c
index 39a6cb2..f81ab46 100644
--- a/backends/maweb.c
+++ b/backends/maweb.c
@@ -752,7 +752,7 @@ static ssize_t maweb_handle_ws(instance* inst, ssize_t bytes_read){
static int maweb_handle_fd(instance* inst){
maweb_instance_data* data = (maweb_instance_data*) inst->impl;
- ssize_t bytes_read, bytes_left = data->allocated - data->offset, bytes_handled;
+ ssize_t bytes_read, bytes_left = data->allocated - data->offset, bytes_handled = 0;
if(bytes_left < 3){
data->buffer = realloc(data->buffer, (data->allocated + MAWEB_RECV_CHUNK) * sizeof(uint8_t));