diff options
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printing.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 61c3282196..c0cd44d1ec 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -178,9 +178,13 @@ static struct tdb_print_db *get_print_db_byname(const char *printername) print_db_head->printer_name )); return NULL; } - ZERO_STRUCTP(p); - DLIST_PROMOTE(print_db_head, p); } + ZERO_STRUCTP(p); + break; + } + if (p) { + DLIST_PROMOTE(print_db_head, p); + p = print_db_head; } } |