--- classes.orig Mon Nov 19 00:06:13 2007 +++ classes.c Mon Nov 19 00:04:55 2007 @@ -257,6 +257,13 @@ } /* + * Make sure that the class has at least one printer + */ + + if (!c->num_printers) + return (NULL); + + /* * Make sure that the last printer is also a valid index into the printer * array. If not, reset the last printer to 0... */