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 | d69b8b19aeac2266fb5e5ee280ffffe48a690099 (patch) | |
tree | f721399611db39f08cee028004b5bfa00293147d | |
parent | 120d8c889fa9ad61c74f1f936e83537513454648 (diff) | |
download | samba-d69b8b19aeac2266fb5e5ee280ffffe48a690099.tar.gz samba-d69b8b19aeac2266fb5e5ee280ffffe48a690099.tar.xz samba-d69b8b19aeac2266fb5e5ee280ffffe48a690099.zip |
Fix Coverity ID 538
-rw-r--r-- | source/lib/substitute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/substitute.c b/source/lib/substitute.c index ce97a361887..85c06e93741 100644 --- a/source/lib/substitute.c +++ b/source/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; } |