summaryrefslogtreecommitdiff
path: root/source3/python/py_common.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-11-22 06:15:43 +0000
committerTim Potter <tpot@samba.org>2002-11-22 06:15:43 +0000
commitd1bedec87c435fb874991fda109911e44ea0bf4d (patch)
tree5506d7e0800cff8fb5568cf87196c16ca80fe776 /source3/python/py_common.c
parenta75f1ba9d4b314f793bf7877f329dc420546c4b0 (diff)
downloadsamba-d1bedec87c435fb874991fda109911e44ea0bf4d.tar.gz
samba-d1bedec87c435fb874991fda109911e44ea0bf4d.tar.bz2
samba-d1bedec87c435fb874991fda109911e44ea0bf4d.zip
Fixed some globals that escaped the recent globalcide.
(This used to be commit 4580e16908fe06a2c2b6738683b7cb840467e61c)
Diffstat (limited to 'source3/python/py_common.c')
-rw-r--r--source3/python/py_common.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source3/python/py_common.c b/source3/python/py_common.c
index 364271d57c..6e299470bf 100644
--- a/source3/python/py_common.c
+++ b/source3/python/py_common.c
@@ -45,9 +45,6 @@ static BOOL initialised;
void py_samba_init(void)
{
- extern pstring global_myname;
- char *p;
-
if (initialised)
return;
@@ -59,11 +56,7 @@ void py_samba_init(void)
/* Misc other stuff */
load_interfaces();
-
- fstrcpy(global_myname, myhostname());
- p = strchr(global_myname, '.');
- if (p)
- *p = 0;
+ init_names();
initialised = True;
}