git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6255216
)
s3-net: Fix Coverity #886 (FORWARD_NULL).
author
Günther Deschner
<gd@samba.org>
Thu, 19 Mar 2009 15:18:29 +0000
(16:18 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Wed, 15 Apr 2009 07:07:28 +0000
(09:07 +0200)
Guenther
(cherry picked from commit
2c186be0df33664eea980c17720be41f25f91288
)
(cherry picked from commit
990917cbe3f8cd00e2d13dd67ee752fffae94401
)
source3/utils/net_rpc_printer.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_rpc_printer.c
b/source3/utils/net_rpc_printer.c
index b25c8977703aee63bbb2178e474b1c6b52334a4e..81dfbaa5b6b837714e1249dfdab88257b96c2b20 100644
(file)
--- 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;