[ipxe-devel] uninitialized variable

Michael Brown mbrown at fensystems.co.uk
Fri Sep 28 09:59:23 UTC 2012


On Thursday 27 Sep 2012 10:05:47 Christian Hesse wrote:
> Christian Hesse <list at eworm.de> on Thu, 2012/09/27 08:59:
> > Hello everybody,
> > 
> > with current git I get:
> > 
> > net/tls.c: In function ‘tls_newdata_process_data’:
> > net/tls.c:2339:5: error: ‘rc’ may be used uninitialized in this function
> > [-Werror=maybe-uninitialized]
> > 
> > Will take a look later, should not be a big deal.
> 
> The problem is in tls_new_record(). The attached patch fixes it for me,
> hope it is correct.

Thanks for finding this.  I'm surprised that gcc 4.5.2 wasn't generating a 
warning.

Should now be fixed:

  http://git.ipxe.org/ipxe.git/commitdiff/1e199c8

Michael



More information about the ipxe-devel mailing list