summaryrefslogtreecommitdiffstats
path: root/source/printing
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2004-08-25 13:03:04 +0000
committerGünther Deschner <gd@samba.org>2004-08-25 13:03:04 +0000
commit1d7bc395c9789ba31670e5c8d78bfa37c89ea056 (patch)
treeeff5ebf389150eb66d08b67d9b04ec7f55bdf47a /source/printing
parentce37c6673f003c6b08c899f9e43b030862950137 (diff)
downloadsamba-1d7bc395c9789ba31670e5c8d78bfa37c89ea056.tar.gz
samba-1d7bc395c9789ba31670e5c8d78bfa37c89ea056.tar.xz
samba-1d7bc395c9789ba31670e5c8d78bfa37c89ea056.zip
r2068: Use SMB_ASSERT to track down empty printername (thanks jerry).
Guenther
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/printing_db.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/printing/printing_db.c b/source/printing/printing_db.c
index e13c0ac8880..d45ad1cff79 100644
--- a/source/printing/printing_db.c
+++ b/source/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. */