From f2006f8ce1d4e87ddb5605ca11e5763f6526830f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 11 Mar 2006 02:12:25 +0000 Subject: r14184: Coverity fix #56. Ensure we can't deref null. Jeremy. (This used to be commit c76092a0662714b49c3c519d6f01174b8995a036) --- source3/printing/nt_printing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/printing') diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 1ce0b5e9e3..68e18913ee 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -3531,7 +3531,7 @@ static void map_to_os2_driver(fstring drivername) } lines = file_lines_load(mapfile, &numlines,0); - if (numlines == 0) { + if (numlines == 0 || lines == NULL) { DEBUG(0,("No entries in OS/2 driver map %s\n",mapfile)); return; } -- cgit