[selphy] Fix CUPS operation with the CP-100 printer that has no serial number.

This commit is contained in:
Solomon Peachy 2013-01-29 18:13:11 -05:00
parent 6d064f074c
commit fcdb16d9f9

View file

@ -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: " : "",