[selphy] Fix CUPS operation with the CP-100 printer that has no serial number.
This commit is contained in:
parent
6d064f074c
commit
fcdb16d9f9
|
@ -307,6 +307,9 @@ static int find_and_enumerate(struct libusb_context *ctx,
|
|||
libusb_get_string_descriptor_ascii(dev, desc.iSerialNumber, serial, STR_LEN_MAX);
|
||||
}
|
||||
|
||||
if (!strlen(serial))
|
||||
strcpy(serial, "NONE");
|
||||
|
||||
DEBUG("%s%sPID: %04X Product: '%s' Serial: '%s'\n",
|
||||
(!valid) ? "UNRECOGNIZED: " : "",
|
||||
(found == i) ? "MATCH: " : "",
|
||||
|
|
Loading…
Reference in a new issue