diff options
author | Günther Deschner <gd@samba.org> | 2004-08-25 13:03:04 +0000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2004-08-25 13:03:04 +0000 |
commit | 1d7bc395c9789ba31670e5c8d78bfa37c89ea056 (patch) | |
tree | eff5ebf389150eb66d08b67d9b04ec7f55bdf47a /source/printing | |
parent | ce37c6673f003c6b08c899f9e43b030862950137 (diff) | |
download | samba-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.c | 3 |
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. */ |