/*
- * "$Id: ppd.c,v 1.51.2.47 2003/02/25 19:18:24 mike Exp $"
+ * "$Id: ppd.c,v 1.51.2.48 2003/02/28 10:31:13 mike Exp $"
*
* PPD file routines for the Common UNIX Printing System (CUPS).
*
{
char spec[PPD_MAX_NAME + PPD_MAX_TEXT];
- snprintf(spec, sizeof(spec), "%s/%s", name, text);
- ppd_add_attr(ppd, keyword, spec, string);
+ if (text[0])
+ {
+ snprintf(spec, sizeof(spec), "%s/%s", name, text);
+ ppd_add_attr(ppd, keyword, spec, string);
+ }
+ else
+ ppd_add_attr(ppd, keyword, name, string);
string = NULL; /* Don't free this string below */
}
/*
- * End of "$Id: ppd.c,v 1.51.2.47 2003/02/25 19:18:24 mike Exp $".
+ * End of "$Id: ppd.c,v 1.51.2.48 2003/02/28 10:31:13 mike Exp $".
*/