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

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

View File

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

View File

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