about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTFile.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2001-02-13 01:44:28 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2001-02-13 01:44:28 -0500
commitaffaa4f761ddf2c0edce3e00f3a989a0ef8a44d8 (patch)
tree3da4fcaa7cba63a893e69b0e6737b6eb4cea4079 /WWW/Library/Implementation/HTFile.c
parent2a786b2632ff4fe945cb5826f7a378778caf72eb (diff)
downloadlynx-snapshots-affaa4f761ddf2c0edce3e00f3a989a0ef8a44d8.tar.gz
snapshot of project "lynx", label v2-8-4dev_18
Diffstat (limited to 'WWW/Library/Implementation/HTFile.c')
-rw-r--r--WWW/Library/Implementation/HTFile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/HTFile.c b/WWW/Library/Implementation/HTFile.c
index 3e990097..0fbbbde7 100644
--- a/WWW/Library/Implementation/HTFile.c
+++ b/WWW/Library/Implementation/HTFile.c
@@ -2025,11 +2025,10 @@ PUBLIC int HTStat ARGS2(
      */
     if (access(temp_name, 0) == 0) {
 	if (stat(temp_name, data) == -1) data->st_mode = S_IFDIR;
-	return 0;
+	    result = 0;
     }
-    return -1;
 #else
-    return stat(temp_name, data);
+    result = stat(temp_name, data);
 #endif
 
     if (temp_name != filename) {