mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-31 01:24:43 +02:00
- no need for strdup, we never free myconfig
- use defconfig for default passwd/lockfile git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@145 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
d1c6c24eea
commit
410a4f8d96
@ -192,12 +192,14 @@ create_config ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (myconfig->max == 0) myconfig->max = defconfig.max;
|
if (myconfig->max == 0) myconfig->max = defconfig.max;
|
||||||
if (!myconfig->banner) myconfig->banner = strdup(defconfig.banner);
|
if (!myconfig->banner) myconfig->banner = defconfig.banner;
|
||||||
if (!myconfig->chroot) myconfig->chroot = strdup(defconfig.chroot);
|
if (!myconfig->chroot) myconfig->chroot = defconfig.chroot;
|
||||||
if (!myconfig->nethack) myconfig->nethack = strdup(defconfig.nethack);
|
if (!myconfig->nethack) myconfig->nethack = defconfig.nethack;
|
||||||
if (!myconfig->dglroot) myconfig->dglroot = strdup(defconfig.dglroot);
|
if (!myconfig->dglroot) myconfig->dglroot = defconfig.dglroot;
|
||||||
if (!myconfig->rcfile) myconfig->rcfile = strdup(defconfig.rcfile);
|
if (!myconfig->rcfile) myconfig->rcfile = defconfig.rcfile;
|
||||||
if (!myconfig->spool) myconfig->spool = strdup(defconfig.spool);
|
if (!myconfig->spool) myconfig->spool = defconfig.spool;
|
||||||
|
if (!myconfig->passwd) myconfig->passwd = defconfig.passwd;
|
||||||
|
if (!myconfig->lockfile) myconfig->lockfile = defconfig.lockfile;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user