summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-18 02:35:14 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-18 02:35:14 +0000
commitdb0631f2d025ae3bda61a552318a834865918046 (patch)
tree5102edeab7a8c2bb3351110b30ba539bb3feb2c5 /source3
parent75731f8c23ee20f5d345615b1398be1991fff0e4 (diff)
downloadsamba-db0631f2d025ae3bda61a552318a834865918046.tar.gz
samba-db0631f2d025ae3bda61a552318a834865918046.tar.bz2
samba-db0631f2d025ae3bda61a552318a834865918046.zip
don't parse blank lines
(This used to be commit 8b1afe7e1af0a62244632e0a58b9e513ab4366f0)
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 44f228880a..848344f15e 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -939,6 +939,8 @@ static uint32 get_a_printer_2(NT_PRINTER_INFO_LEVEL_2 **info_ptr, fstring sharen
for (i=0; lines[i]; i++) {
char *line = lines[i];
+ if (!*line) continue;
+
v=strncpyn(p, line, sizeof(p), ':');
if (v==NULL)
{