From 14cd5c6c401fd769995030c135d07fae56f2ecca Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 14 Jun 2013 19:01:58 -0700 Subject: [PATCH] muxedit: silence some uninitialized warnings src/mux/muxedit.c:490: warning: 'x_offset' may be used uninitialized in this function src/mux/muxedit.c:490: warning: 'y_offset' may be used uninitialized in this function Change-Id: I4fd27f717e59a556354d0560b633d0edafe7a4d8 --- src/mux/muxedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mux/muxedit.c b/src/mux/muxedit.c index 00cdd026..98804057 100644 --- a/src/mux/muxedit.c +++ b/src/mux/muxedit.c @@ -487,7 +487,7 @@ static WebPMuxError GetImageCanvasWidthHeight( int64_t image_area = 0; // Aggregate the bounding box for animation frames & fragmented images. for (; wpi != NULL; wpi = wpi->next_) { - int x_offset, y_offset, duration, w, h; + int x_offset = 0, y_offset = 0, duration = 0, w = 0, h = 0; const WebPMuxError err = GetImageInfo(wpi, &x_offset, &y_offset, &duration, &w, &h); const int max_x_pos = x_offset + w;