1
0
Fork 0

returning addresses of auto vars is *dangerous* (ask Vasilii! :-)

This was the reason why some people (especially SuSE10.0/gcc 4.0.2
users) couldn't see others in MP. I don't even know why I'm committing
that. It's less important than taxi lights ...
This commit is contained in:
mfranz 2005-12-02 00:10:25 +00:00
parent d71a541837
commit b716c6d15b

View file

@ -132,7 +132,7 @@ float
XDR_decode_float ( const xdr_data_t & f_Val )
{
float* tmp;
xdr_data_t dummy;
static xdr_data_t dummy;
dummy = XDR_decode_int32 (f_Val);
tmp = (float*) &dummy;
@ -153,7 +153,7 @@ double
XDR_decode_double ( const xdr_data2_t & d_Val )
{
double* tmp;
xdr_data2_t dummy;
static xdr_data2_t dummy;
dummy = XDR_decode_int64 (d_Val);
tmp = (double*) &dummy;