usbdevice/core/core.c: fix garbage value bug

This could crash the program with -O1 and -O2 in MDK.