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

Remove unneeded variable.

Jeremy.
(This used to be commit c21bc756e3)
This commit is contained in:
Jeremy Allison 2007-11-08 18:01:00 -08:00
parent 214bb0f119
commit 7f97c6b96c

View File

@ -1209,13 +1209,12 @@ bool get_myname(char *my_name)
}
/****************************************************************************
Get my own domain name.
Get my own domain name, or "" if we have none.
****************************************************************************/
char *get_mydnsdomname(TALLOC_CTX *ctx)
{
const char *domname;
char *my_domname = NULL;
char *p;
domname = get_mydnsfullname();
@ -1226,12 +1225,10 @@ char *get_mydnsdomname(TALLOC_CTX *ctx)
p = strchr_m(domname, '.');
if (p) {
p++;
my_domname = talloc_strdup(ctx, p);
return talloc_strdup(ctx, p);
} else {
my_domname = talloc_strdup(ctx, "");
return talloc_strdup(ctx, "");
}
return my_domname;
}
/****************************************************************************