svn commit: samba r2068 - branches/SAMBA_3_0/source/printing trunk/source/printing

gd at samba.org gd at samba.org
Wed Aug 25 13:03:05 GMT 2004


Author: gd
Date: 2004-08-25 13:03:04 +0000 (Wed, 25 Aug 2004)
New Revision: 2068

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=2068&nolog=1

Log:
Use SMB_ASSERT to track down empty printername (thanks jerry).

Guenther

Modified:
   branches/SAMBA_3_0/source/printing/printing_db.c
   trunk/source/printing/printing_db.c


Changeset:
Modified: branches/SAMBA_3_0/source/printing/printing_db.c
===================================================================
--- branches/SAMBA_3_0/source/printing/printing_db.c	2004-08-25 12:31:00 UTC (rev 2067)
+++ branches/SAMBA_3_0/source/printing/printing_db.c	2004-08-25 13:03:04 UTC (rev 2068)
@@ -37,8 +37,7 @@
 	pstring printdb_path;
 	BOOL done_become_root = False;
 
-	if (printername == NULL)
-		return NULL;
+	SMB_ASSERT(printername != NULL);
 
 	for (p = print_db_head, last_entry = print_db_head; p; p = p->next) {
 		/* Ensure the list terminates... JRA. */

Modified: trunk/source/printing/printing_db.c
===================================================================
--- trunk/source/printing/printing_db.c	2004-08-25 12:31:00 UTC (rev 2067)
+++ trunk/source/printing/printing_db.c	2004-08-25 13:03:04 UTC (rev 2068)
@@ -37,8 +37,7 @@
 	pstring printdb_path;
 	BOOL done_become_root = False;
 
-	if (printername == NULL)
-		return NULL;
+	SMB_ASSERT(printername != NULL);
 
 	for (p = print_db_head, last_entry = print_db_head; p; p = p->next) {
 		/* Ensure the list terminates... JRA. */



More information about the samba-cvs mailing list