diff options
author | Volker Lendecke <vl@samba.org> | 2008-03-21 11:42:42 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-03-21 11:42:42 +0100 |
commit | e14f26f22b58fe505c3211f0d487b07020f42120 (patch) | |
tree | 42759123c282af828ea9de802eede6c1f4b088e6 | |
parent | 7ca6192c1ac6b59d295be825dea969bae36659ec (diff) | |
download | samba-e14f26f22b58fe505c3211f0d487b07020f42120.tar.gz samba-e14f26f22b58fe505c3211f0d487b07020f42120.tar.bz2 samba-e14f26f22b58fe505c3211f0d487b07020f42120.zip |
Fix Coverity ID 537
(This used to be commit b19ea3635ccc1f2c7cd6c7f2d179264fbdce13a7)
-rw-r--r-- | source3/lib/substitute.c | 6 |
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; } |