[SCM] Samba Shared Repository - branch v3-2-test updated -
initial-v3-2-unstable-243-gc21bc75
Jeremy Allison
jra at samba.org
Fri Nov 9 02:01:42 GMT 2007
The branch, v3-2-test has been updated
via c21bc756e36581d3adc770bc2b773b5cf9bf11d0 (commit)
from ab8934844a8ae08657769ce1787c32f14a7eb745 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit c21bc756e36581d3adc770bc2b773b5cf9bf11d0
Author: Jeremy Allison <jra at samba.org>
Date: Thu Nov 8 18:01:00 2007 -0800
Remove unneeded variable.
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source/lib/util.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/lib/util.c b/source/lib/util.c
index 287d209..ab33df4 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -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;
}
/****************************************************************************
--
Samba Shared Repository
More information about the samba-cvs
mailing list