From 5b1c7afe9b1467a1345cb0966344ef31c513ba38 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 25 Aug 2004 13:03:04 +0000 Subject: r2068: Use SMB_ASSERT to track down empty printername (thanks jerry). Guenther (This used to be commit 9d8fdd5f323951d3d9b581e9edbf89b05c897af7) --- source3/printing/printing_db.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/printing/printing_db.c') diff --git a/source3/printing/printing_db.c b/source3/printing/printing_db.c index e13c0ac888..d45ad1cff7 100644 --- a/source3/printing/printing_db.c +++ b/source3/printing/printing_db.c @@ -37,8 +37,7 @@ struct tdb_print_db *get_print_db_byname(const char *printername) 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. */ -- cgit