Browse Source

Set cgusb->buffer to NULL when doing usb_buffer_disable.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
62585778e7
  1. 1
      usbutils.c

1
usbutils.c

@ -2538,6 +2538,7 @@ void usb_buffer_disable(struct cgpu_info *cgpu)
cgusb->bufamt = 0; cgusb->bufamt = 0;
cgusb->bufsiz = 0; cgusb->bufsiz = 0;
free(cgusb->buffer); free(cgusb->buffer);
cgusb->buffer = NULL;
} }
} }

Loading…
Cancel
Save