* src/files.c (skeleton_find) [MSDOS]: Fix cp definition.

This commit is contained in:
Akim Demaille
2002-01-21 15:48:25 +00:00
parent 2842171a4c
commit ef1a77c2c9
4 changed files with 10 additions and 4 deletions

View File

@@ -215,6 +215,7 @@ skeleton_find (const char *envvar, const char *skeleton_name)
const char *res = getenv (envvar);
#if defined (MSDOS) || defined (_WIN32)
const char *cp = getenv ("INIT");
if (!res)
{
/* Skeleton file name without path */
@@ -227,7 +228,6 @@ skeleton_find (const char *envvar, const char *skeleton_name)
++skel_name;
/* File doesn't exist in current directory; try in INIT directory. */
const char *cp = getenv ("INIT");
if (cp)
{
res = XMALLOC (char, strlen (cp) + strlen (skel_name) + 2);