zmqsend: Initialize ret to 0
authorTimothy Gu <timothygu99@gmail.com>
Mon, 5 Dec 2016 18:04:57 +0000 (10:04 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Dec 2016 23:07:50 +0000 (00:07 +0100)
Fixes CID1396857.

(cherry picked from commit d903b4e3ad4a81b3dd79f12c2f3b9cb16e511173)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tools/zmqsend.c

index d47bf21..6148bd6 100644 (file)
@@ -53,7 +53,7 @@ int main(int argc, char **argv)
 {
     AVBPrint src;
     char c, *src_buf, *recv_buf;
-    int recv_buf_size, ret;
+    int recv_buf_size, ret = 0;
     void *zmq_ctx, *socket;
     const char *bind_address = "tcp://localhost:5555";
     const char *infilename = NULL;