Fix a warning when running the cygwin version under Wine

This commit is contained in:
Christophe Grenier 2009-12-28 08:14:03 +01:00
parent 2e333292e9
commit d1f3b2d095

View file

@ -970,15 +970,7 @@ static char *filename_to_directory(const char *filename)
res=buf;
}
#endif
#ifdef __CYGWIN__
{
char beautifull_dst_directory[2048];
cygwin_conv_to_win32_path(res, beautifull_dst_directory);
return strdup(beautifull_dst_directory);
}
#else
return strdup(res);
#endif
}
int start_ncurses(const char *prog_name, const char *real_prog_name)
@ -1013,7 +1005,7 @@ int start_ncurses(const char *prog_name, const char *real_prog_name)
#endif
screenp=newterm(NULL,stdout,stdin);
#ifdef HAVE_SETENV
if(screenp==NULL && terminfo!=NULL)
if(screenp==NULL && terminfo!=NULL && terminfo[0]!='\0')
{
setenv("TERMINFO", terminfo, 1);
screenp=newterm(NULL,stdout,stdin);