diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-04-18 02:35:14 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-04-18 02:35:14 +0000 |
commit | 8b1afe7e1af0a62244632e0a58b9e513ab4366f0 (patch) | |
tree | 61f9a3bf4b8acff1e868f294a1ab51dc5a571053 | |
parent | e505a6ddf3df37ca485cae117c53fa96d736f897 (diff) | |
download | samba-8b1afe7e1af0a62244632e0a58b9e513ab4366f0.tar.gz samba-8b1afe7e1af0a62244632e0a58b9e513ab4366f0.tar.xz samba-8b1afe7e1af0a62244632e0a58b9e513ab4366f0.zip |
don't parse blank lines
-rw-r--r-- | source/printing/nt_printing.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 44f228880a8..848344f15e9 100644 --- a/source/printing/nt_printing.c +++ b/source/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) { |