about summary refs log tree commit diff stats
path: root/src/LYrcFile.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2002-10-07 01:07:23 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2002-10-07 01:07:23 -0400
commit0cb11571ef3a2820a888b47eaa0ea3083e3b9b0f (patch)
tree1e65bf4510e41320b9428058bb20f3f6d6fdd648 /src/LYrcFile.c
parentffc5ca31a759c93f4cb2af8aec4fe6e852161855 (diff)
downloadlynx-snapshots-0cb11571ef3a2820a888b47eaa0ea3083e3b9b0f.tar.gz
snapshot of project "lynx", label v2-8-5dev_9
Diffstat (limited to 'src/LYrcFile.c')
-rw-r--r--src/LYrcFile.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/LYrcFile.c b/src/LYrcFile.c
index 790b4aa8..97179ca8 100644
--- a/src/LYrcFile.c
+++ b/src/LYrcFile.c
@@ -19,7 +19,6 @@
 #endif /* FNAMES_8_3 */
 
 #define MSG_ENABLE_LYNXRC N_("Normally disabled.  See ENABLE_LYNXRC in lynx.cfg\n")
-#define NonNull(string) ((string) != 0 ? (string) : "")
 #define putBool(value) ((value) ? "on" : "off")
 
 PUBLIC Config_Enum tbl_DTD_recovery[] = {
@@ -147,17 +146,21 @@ PUBLIC BOOL LYgetEnum ARGS3(
 {
     Config_Enum *found = 0;
     unsigned len = strlen(name);
+    int match = 0;
 
     if (len != 0) {
 	while (table->name != 0) {
 	    if (!strncasecomp(table->name, name, len)) {
-		if (found != 0)
-		    return FALSE; /* ambiguous, don't use this */
 		found = table;
+		if (!strcasecomp(table->name, name)) {
+		    match = 1;
+		    break;
+		}
+		++match;
 	    }
 	    table++;
 	}
-	if (found != 0) {
+	if (match == 1) {	/* if unambiguous */
 	    *result = found->value;
 	    return TRUE;
 	}
@@ -419,7 +422,7 @@ preferred_language specifies the language in MIME notation (e.g., en,\n\
 fr, may be a comma-separated list in decreasing preference)\n\
 which Lynx will indicate you prefer in requests to http servers.\n\
 If a file in that language is available, the server will send it.\n\
-Otherwise, the server will send the file in it's default language.\n\
+Otherwise, the server will send the file in its default language.\n\
 ")),
     MAYBE_SET(RC_RAW_MODE,              LYRawMode,          MSG_ENABLE_LYNXRC),
 #if defined(ENABLE_OPTS_CHANGE_EXEC) && (defined(EXEC_LINKS) || defined(EXEC_SCRIPTS))