optimise more :)

This commit is contained in:
tg
2007-10-25 15:34:30 +00:00
parent f9a4d9605c
commit 5e02cce898
3 changed files with 7 additions and 18 deletions

6
eval.c
View File

@ -2,7 +2,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.35 2007/09/09 18:06:39 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.36 2007/10/25 15:34:29 tg Exp $");
#ifdef MKSH_SMALL
#define MKSH_NOPWNAM
@ -1243,9 +1243,7 @@ tilde(char *cp)
dp = homedir(cp);
#endif
/* If HOME, PWD or OLDPWD are not set, don't expand ~ */
if (dp == null)
dp = NULL;
return dp;
return (dp == null ? NULL : dp);
}
#ifndef MKSH_NOPWNAM