fixing find_key. ouch!

This commit is contained in:
Enno Rehling 2008-06-03 10:16:55 +00:00
parent 09478956c8
commit 15971fdb98
3 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ find_key(attrib * alist, int key)
while (a && a->type==&at_key && a->data.i != key) {
a = a->next;
}
return a;
return (a && a->type==&at_key)?a:NULL;
}
void

View File

@ -151,7 +151,7 @@ bin_w_str(struct storage * store, const char * tok)
return result;
}
#define FIX_INVALID_CHARS
#define FIX_INVALID_CHARS /* required for data pre-574 */
static char *
bin_r_str(struct storage * store)
{

View File

@ -368,7 +368,7 @@
</string>
<string name="diamondaxe">
<text locale="de">Adamantaxe</text>
<text locale="de">Adamantaxt</text>
<text locale="en">adamantium axe</text>
</string>
<string name="diamondaxe_p">