[ipxe-devel] uninitialized variable

Christian Hesse list at eworm.de
Thu Sep 27 09:05:47 UTC 2012

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.
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipxe.patch
Type: text/x-patch
Size: 414 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20120927/4a75ffc3/attachment.bin>

More information about the ipxe-devel mailing list