diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2013-10-23 09:23:57 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2013-10-23 09:23:57 -0400 |
commit | 663ccb75029b218a6426112cfaa17d798c03bc03 (patch) | |
tree | 82090e53b262dc63b91a98fd78f3e7ba04227587 /src/LYUtils.c | |
parent | 4f425f10de2f941c23f2c927767fb92a6053044f (diff) | |
download | lynx-snapshots-663ccb75029b218a6426112cfaa17d798c03bc03.tar.gz |
snapshot of project "lynx", label v2-8-8dev_16v
Diffstat (limited to 'src/LYUtils.c')
-rw-r--r-- | src/LYUtils.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/LYUtils.c b/src/LYUtils.c index 6aedd0e3..cdb68d56 100644 --- a/src/LYUtils.c +++ b/src/LYUtils.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYUtils.c,v 1.254 2013/10/19 00:59:45 tom Exp $ + * $LynxId: LYUtils.c,v 1.256 2013/10/23 09:12:22 tom Exp $ */ #include <HTUtils.h> #include <HTTCP.h> @@ -2816,13 +2816,14 @@ BOOLEAN LYCanWriteFile(const char *filename) BOOLEAN LYCanReadFile(const char *filename) { FILE *fp; + BOOLEAN result = FALSE; if (non_empty(filename)) { if ((fp = fopen(filename, "r")) != 0) { - return LYCloseInput(fp); + result = LYCloseInput(fp); } } - return FALSE; + return result; } /* @@ -7414,6 +7415,7 @@ void LYsetXDisplay(char *new_display) #else static char *display_putenv_command; + display_putenv_command = NULL; /* yes, this is a leak - cannot fix */ HTSprintf0(&display_putenv_command, "DISPLAY=%s", new_display); putenv(display_putenv_command); #endif /* VMS */ |