summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-11 02:12:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:15 -0500
commitf2006f8ce1d4e87ddb5605ca11e5763f6526830f (patch)
tree536a32ee2e492a0bca288e28c9e49775a2281e95 /source3/printing
parentdd728b4712fbb3111f325617dc90d27b41205600 (diff)
downloadsamba-f2006f8ce1d4e87ddb5605ca11e5763f6526830f.tar.gz
samba-f2006f8ce1d4e87ddb5605ca11e5763f6526830f.tar.bz2
samba-f2006f8ce1d4e87ddb5605ca11e5763f6526830f.zip
r14184: Coverity fix #56. Ensure we can't deref null.
Jeremy. (This used to be commit c76092a0662714b49c3c519d6f01174b8995a036)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
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;
}