bug in printing/print_generic.c

Jim Vopni jimv at metrics.com
Wed Mar 28 18:21:28 GMT 2001


a ZERO_STRUCT should be a ZERO_STRUCTP

the symptom being the printer status is never filled in due to the pointer
being zero'd instead of the struct


--- printing/print_generic.c.orig       Wed Mar 28 13:15:39 2001
+++ printing/print_generic.c    Wed Mar 28 13:15:56 2001
@@ -213,7 +213,7 @@
 
        /* turn the lpq output into a series of job structures */
        qcount = 0;
-       ZERO_STRUCT(status);
+       ZERO_STRUCTP(status);
        if (numlines)
                queue = (print_queue_struct
*)malloc(sizeof(print_queue_struct)*(numlines+1));


...Jim
----------------
Jim Vopni			Software Metrics
jimv at metrics.com		450 Philips St
(519) 885-2458 x222	Waterloo Ont. N2L 5J2




More information about the samba-technical mailing list