diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2002-11-13 14:45:11 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2002-11-13 14:45:11 +0000 |
commit | aff957e7f740d81b3abde4b0c1faedda260a73b3 (patch) | |
tree | e9a33ffca30f37544bee2aa89b86991c0f363ba0 | |
parent | 7fc28a91edc14fa9370280c18f046e42054969a0 (diff) | |
download | samba-aff957e7f740d81b3abde4b0c1faedda260a73b3.tar.gz samba-aff957e7f740d81b3abde4b0c1faedda260a73b3.tar.bz2 samba-aff957e7f740d81b3abde4b0c1faedda260a73b3.zip |
Don't crash when there are no arguments specified
(This used to be commit 0855e5810aefd71c37031be31abe91229e2de8b3)
-rw-r--r-- | source3/utils/pdbedit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index 6a019e73d7..45a63c4b64 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -495,7 +495,7 @@ int main (int argc, char **argv) poptGetArg(pc); /* Drop argv[0], the program name */ if (user_name == NULL) { - user_name = strdup(poptGetArg(pc)); + user_name = poptGetArg(pc); } if (!lp_load(dyn_CONFIGFILE,True,False,False)) { @@ -503,6 +503,9 @@ int main (int argc, char **argv) exit(1); } + if(lp_modules()) + smb_load_modules(lp_modules()); + if (!init_names()) exit(1); |