diff options
-rw-r--r-- | source3/printing/printing_db.c | 3 |
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. */ |