diff --git a/ffprobe.c b/ffprobe.c
index b6ac06101081b3fb7c28c1b4690a495421faf634..316e927346d840bcaf950fd4357315d3684a0119 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -118,7 +118,7 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
     AVCodecContext *dec_ctx;
     AVCodec *dec;
     char val_str[128];
-    AVMetadataTag *tag;
+    AVMetadataTag *tag = NULL;
     char a, b, c, d;
 
     printf("[STREAM]\n");