# HG changeset patch # User gpoirier # Date 1234262105 0 # Node ID e3693cef784a6a28df10f021106e827cfd23fd0d # Parent bee83b3f9a6bb83cd09e72138e2acab3765ba991 Fix (with av_uninit()) false positive warning about uninitialized variable: offset is initialized and used if code == 1. patch by Patrik Kullman %patrik A yes P nu% diff -r bee83b3f9a6b -r e3693cef784a bfi.c --- a/bfi.c Mon Feb 09 23:37:31 2009 +0000 +++ b/bfi.c Tue Feb 10 10:35:05 2009 +0000 @@ -94,7 +94,7 @@ while (dst != frame_end) { static const uint8_t lentab[4]={0,2,0,1}; - unsigned int byte = *buf++, offset; + unsigned int byte = *buf++, av_uninit(offset); unsigned int code = byte >> 6; unsigned int length = byte & ~0xC0;