summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-21 11:42:42 +0100
committerVolker Lendecke <vl@samba.org>2008-03-21 11:42:42 +0100
commite14f26f22b58fe505c3211f0d487b07020f42120 (patch)
tree42759123c282af828ea9de802eede6c1f4b088e6 /source3
parent7ca6192c1ac6b59d295be825dea969bae36659ec (diff)
downloadsamba-e14f26f22b58fe505c3211f0d487b07020f42120.tar.gz
samba-e14f26f22b58fe505c3211f0d487b07020f42120.tar.bz2
samba-e14f26f22b58fe505c3211f0d487b07020f42120.zip
Fix Coverity ID 537
(This used to be commit b19ea3635ccc1f2c7cd6c7f2d179264fbdce13a7)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/substitute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c
index 85c06e9374..6ecc3fc635 100644
--- a/source3/lib/substitute.c
+++ b/source3/lib/substitute.c
@@ -483,6 +483,9 @@ static const char *automount_server(const char *user_name)
return "";
}
srv = talloc_strdup(ctx, automount_value);
+ if (!srv) {
+ return "";
+ }
p = strchr_m(srv, ':');
if (!p) {
return "";
@@ -494,9 +497,6 @@ static const char *automount_server(const char *user_name)
}
#endif
- if (!server_name) {
- server_name = "";
- }
DEBUG(4,("Home server: %s\n", server_name));
return server_name;
}