Previous 15994 Revisions Next

r2063 Saturday 22nd March, 2008 at 17:10:15 UTC by Nathan Woods
Fixed breakage introduced in r2060
[src/mess]device.c

src/mess/device.c
r2062r2063
363363
364364static const struct IODevice *filter_device_array_termination(const struct IODevice *dev)
365365{
366   return (dev->type < IO_COUNT) ? dev : NULL;
366   return ((dev != NULL) && (dev->type < IO_COUNT)) ? dev : NULL;
367367}
368368
369369

Previous 15994 Revisions Next


© 1998-2018 The MESS Team