Re: [AD] [alleg:bugs] #387 ex_joystick_events crashes on OSX with a connected controller

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


At first glance I don't like this very much.
int int_value;
   if(length <= sizeof(CFIndex)) int_value = IOHIDValueGetIntegerValue(value);
If the condition is false then int_value is uninitialized, isn't it? Also, under what circumstances is length > sizeof(CFIndex) - is there a better test to do, maybe with IOHIDValueGetTypeID?


 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/