don't parse blank lines
authorAndrew Tridgell <tridge@samba.org>
Tue, 18 Apr 2000 02:35:14 +0000 (02:35 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 18 Apr 2000 02:35:14 +0000 (02:35 +0000)
source/printing/nt_printing.c

index 44f228880a8e51fe011c23a208d13765fe464bae..848344f15e94765efd2b4cf9cd307ea95e72f92d 100644 (file)
@@ -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)
                {