]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Remove a few more warning causes.
authorMike Brady <mikebrady@eircom.net>
Wed, 7 Mar 2018 19:27:45 +0000 (19:27 +0000)
committerMike Brady <mikebrady@eircom.net>
Wed, 7 Mar 2018 19:27:45 +0000 (19:27 +0000)
player.c
tinyhttp/http.c

index e886a3ba650f9b3c6f7e7a95d9003cea3fae692c..830a01380eb46001bc1f65524882c66ac933c883 100644 (file)
--- 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);
index 40eb1c7987af19e6e94e5437f0f0a65616f474c4..5ef0ae3f558c72aa5723ad29eacf06142443f2e0 100644 (file)
@@ -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;
 }