CHANGES IN CUPS V1.3.9
- Documentation updates (STR #2904, STR #2944)
+ - The Mac OS X USB backend did not work with some printers
+ that reported a bad 1284 device ID.
- The scheduler incorrectly resolved the client connection
address when HostNameLookups was set to Off (STR #2946)
- The IPP backend incorrectly stopped the local queue if
modelstr[0] = '/';
- if (!CFStringGetCString(make, makestr, sizeof(makestr),
+ if (!make ||
+ !CFStringGetCString(make, makestr, sizeof(makestr),
kCFStringEncodingUTF8))
strcpy(makestr, "Unknown");
- if (!CFStringGetCString(model, &modelstr[1], sizeof(modelstr)-1,
+ if (!model ||
+ !CFStringGetCString(model, &modelstr[1], sizeof(modelstr)-1,
kCFStringEncodingUTF8))
strcpy(modelstr + 1, "Printer");
CFStringRef serialKeys[] = { CFSTR("SN:"), CFSTR("SERN:"), NULL };
if (make != NULL)
- {
- if ((*make = copy_value_for_key(deviceIDString, makeKeys)) == NULL)
- *make = CFStringCreateWithCString(kCFAllocatorDefault, "Unknown",
- kCFStringEncodingUTF8);
- }
+ *make = copy_value_for_key(deviceIDString, makeKeys);
if (model != NULL)
- {
- if ((*model = copy_value_for_key(deviceIDString, modelKeys)) == NULL)
- *model = CFStringCreateWithCString(kCFAllocatorDefault, "Printer",
- kCFStringEncodingUTF8);
- }
+ *model = copy_value_for_key(deviceIDString, modelKeys);
if (serial != NULL)
*serial = copy_value_for_key(deviceIDString, serialKeys);