From cfd40af87ebb15559da2da0b47c470597fc17422 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Wed, 7 Mar 2018 19:27:45 +0000 Subject: [PATCH] Remove a few more warning causes. --- player.c | 2 +- tinyhttp/http.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/player.c b/player.c index e886a3ba..830a0138 100644 --- a/player.c +++ b/player.c @@ -716,7 +716,7 @@ static abuf_t *buffer_get_frame(rtsp_conn_info *conn) { // struct timespec tn; abuf_t *abuf = 0; int i; - abuf_t *curframe; + abuf_t *curframe = 0; int notified_buffer_empty = 0; // diagnostic only pthread_mutex_lock(&conn->ab_mutex); diff --git a/tinyhttp/http.c b/tinyhttp/http.c index 40eb1c79..5ef0ae3f 100644 --- a/tinyhttp/http.c +++ b/tinyhttp/http.c @@ -48,7 +48,7 @@ static void grow_scratch(struct http_roundtripper* rt, int size) if (nsize < size) nsize = size; - rt->scratch = (char*)rt->funcs.realloc_scratch(rt->opaque, rt->scratch, nsize); + rt->scratch = (char*)rt->funcs.realloc_scratch(rt->opaque, rt->scratch, nsize); rt->nscratch = nsize; }