/*
- * "$Id: ppd.c,v 1.51.2.27 2003/01/28 15:29:40 mike Exp $"
+ * "$Id: ppd.c,v 1.51.2.28 2003/01/28 15:37:53 mike Exp $"
*
* PPD file routines for the Common UNIX Printing System (CUPS).
*
ppd_free(ppd->modelname);
ppd_free(ppd->ttrasterizer);
ppd_free(ppd->manufacturer);
- ppd_free(ppd->product);
ppd_free(ppd->nickname);
ppd_free(ppd->shortnickname);
}
else if (strcmp(keyword, "Product") == 0)
{
- ppd_free(ppd->product);
+ /*
+ * Add each Product keyword as an attribute...
+ */
+
+ ppd_add_attr(ppd, keyword, "", string);
+
+ /*
+ * Save the last one in the product element...
+ */
+
ppd->product = string;
string = NULL; /* Don't free this string below */
}
/*
- * End of "$Id: ppd.c,v 1.51.2.27 2003/01/28 15:29:40 mike Exp $".
+ * End of "$Id: ppd.c,v 1.51.2.28 2003/01/28 15:37:53 mike Exp $".
*/