summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2004-08-25 13:03:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:29 -0500
commit5b1c7afe9b1467a1345cb0966344ef31c513ba38 (patch)
tree356cd14a3ef85caa51967049d13a39f2e5ea5c3d /source3/printing
parentb4ec659c76933fa9fe127460e6d1a7fa4fc80656 (diff)
downloadsamba-5b1c7afe9b1467a1345cb0966344ef31c513ba38.tar.gz
samba-5b1c7afe9b1467a1345cb0966344ef31c513ba38.tar.bz2
samba-5b1c7afe9b1467a1345cb0966344ef31c513ba38.zip
r2068: Use SMB_ASSERT to track down empty printername (thanks jerry).
Guenther (This used to be commit 9d8fdd5f323951d3d9b581e9edbf89b05c897af7)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing_db.c3
1 files changed, 1 insertions, 2 deletions
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. */