summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-19 16:18:29 +0100
committerGünther Deschner <gd@samba.org>2009-03-20 10:41:44 +0100
commit2c186be0df33664eea980c17720be41f25f91288 (patch)
tree3da8fed50f5705542b3fa389f5f4bf8dabbaa048
parent842edcd2b08763a35dbdea3518fcc039aa70aad4 (diff)
downloadsamba-2c186be0df33664eea980c17720be41f25f91288.tar.gz
samba-2c186be0df33664eea980c17720be41f25f91288.tar.bz2
samba-2c186be0df33664eea980c17720be41f25f91288.zip
s3-net: Fix Coverity #886 (FORWARD_NULL).
Guenther
-rw-r--r--source3/utils/net_rpc_printer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index b25c897770..81dfbaa5b6 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -1902,7 +1902,7 @@ NTSTATUS rpc_printer_migrate_drivers_internals(struct net_context *c,
}
- if (strlen(drivername) == 0) {
+ if (!drivername || strlen(drivername) == 0) {
DEBUGADD(1,("Did not get driver for printer %s\n",
printername));
goto done;