yres = (int)strtol(ptr + 1, (char **)&ptr, 10);
}
- if (ptr <= value || xres <= 0 || yres <= 0 || !ptr || (_cups_strcasecmp(ptr, "dpi") && _cups_strcasecmp(ptr, "dpc") && _cups_strcasecmp(ptr, "dpcm") && _cups_strcasecmp(ptr, "other")))
+ if (*value && (ptr <= value || xres <= 0 || yres <= 0 || !ptr || (_cups_strcasecmp(ptr, "dpi") && _cups_strcasecmp(ptr, "dpc") && _cups_strcasecmp(ptr, "dpcm") && _cups_strcasecmp(ptr, "other"))))
{
report_error(file, "Bad resolution value \"%s\" on line %d of '%s'.", value, file->linenum, file->filename);
return (false);
case IPP_TAG_MEMBERNAME :
// The value the name of the member in the collection, which
// we need to carry over...
- if (!attr)
- {
- _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP memberName with no attribute."), 1);
- DEBUG_puts("1ipp_read_io: Member name without attribute.");
- goto rollback;
- }
- else if (n == 0)
+ if (n == 0)
{
_cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP memberName value is empty."), 1);
DEBUG_puts("1ipp_read_io: Empty member name value.");