diff options
author | Volker Lendecke <vl@samba.org> | 2008-03-21 11:41:15 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-03-21 11:41:15 +0100 |
commit | 7ca6192c1ac6b59d295be825dea969bae36659ec (patch) | |
tree | b4893a04faacdc473c9b1efa30bff768a3e38a3b /source3 | |
parent | c69c5c132ade57d1eb860ae8f73b0e48de0e5c6f (diff) | |
download | samba-7ca6192c1ac6b59d295be825dea969bae36659ec.tar.gz samba-7ca6192c1ac6b59d295be825dea969bae36659ec.tar.bz2 samba-7ca6192c1ac6b59d295be825dea969bae36659ec.zip |
Fix Coverity ID 538
(This used to be commit d69b8b19aeac2266fb5e5ee280ffffe48a690099)
Diffstat (limited to 'source3')
-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 ce97a36188..85c06e9374 100644 --- a/source3/lib/substitute.c +++ b/source3/lib/substitute.c @@ -433,6 +433,9 @@ static const char *automount_path(const char *user_name) (home_path_start+1):"")); server_path = talloc_strdup(ctx, home_path_start+1); + if (!server_path) { + server_path = ""; + } } } else { /* NIS key lookup failed: default to @@ -443,9 +446,6 @@ static const char *automount_path(const char *user_name) } #endif - if (!server_path) { - server_path = ""; - } DEBUG(4,("Home server path: %s\n", server_path)); return server_path; } |