1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

exec_on_terminal(): simplify code.

This commit is contained in:
Laurent MONIN 2006-01-07 01:28:54 +01:00 committed by Laurent MONIN
parent 2a11525d1a
commit 450e44a598

View File

@ -201,17 +201,17 @@ void
exec_on_terminal(struct terminal *term, unsigned char *path,
unsigned char *delete, int fg)
{
int plen;
int dlen = strlen(delete);
int plen, dlen;
if (path && !*path) return;
if (!path) {
path = "";
plen = 0;
if (path) {
if (!*path) return;
} else {
plen = strlen(path);
path = "";
}
plen = strlen(path);
dlen = strlen(delete);
#ifdef NO_FG_EXEC
fg = 0;
#endif