Fix segfault when using --force-tape-width without printer
When force_tape_width is *not* used it is expected to open/close the usb device.
This commit is contained in:
parent
9cae7f465b
commit
bc7d32a6e6
|
|
@ -648,7 +648,7 @@ int main(int argc, char *argv[])
|
|||
if (im != NULL) {
|
||||
gdImageDestroy(im);
|
||||
}
|
||||
if (forced_tape_width > 0) {
|
||||
if (!forced_tape_width) {
|
||||
ptouch_close(ptdev);
|
||||
}
|
||||
libusb_exit(NULL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue