1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Fix Coverity ID 537

(This used to be commit b19ea3635c)
This commit is contained in:
Volker Lendecke 2008-03-21 11:42:42 +01:00
parent 7ca6192c1a
commit e14f26f22b

View File

@ -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;
}