DFU: make sure to properly initialize g_dfu pointer before using it

This commit is contained in:
Harald Welte
2017-03-03 01:05:22 +01:00
parent b04f4f0ee8
commit 91fc40240e
2 changed files with 5 additions and 0 deletions

View File

@@ -97,6 +97,8 @@ struct dfudata {
unsigned int total_bytes;
};
/* RAM address for this magic value above */
extern struct dfudata _g_dfu;
extern struct dfudata *g_dfu;
void set_usb_serial_str(const uint8_t *serial_usbstr);