diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-11 02:12:25 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:15 -0500 |
commit | c76092a0662714b49c3c519d6f01174b8995a036 (patch) | |
tree | 2890e0142e8f4b4f06bde95492ffc771dd555a2b /source/printing | |
parent | e3a28bf4c8064f7053b7d1a25a2f087ac2095fcd (diff) | |
download | samba-c76092a0662714b49c3c519d6f01174b8995a036.tar.gz samba-c76092a0662714b49c3c519d6f01174b8995a036.tar.xz samba-c76092a0662714b49c3c519d6f01174b8995a036.zip |
r14184: Coverity fix #56. Ensure we can't deref null.
Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/nt_printing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 1ce0b5e9e36..68e18913ee9 100644 --- a/source/printing/nt_printing.c +++ b/source/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; } |