forked from github/server
fixing find_key. ouch!
This commit is contained in:
parent
09478956c8
commit
15971fdb98
3 changed files with 4 additions and 4 deletions
|
@ -47,11 +47,11 @@ make_key(int key)
|
|||
attrib *
|
||||
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) {
|
||||
a = a->next;
|
||||
}
|
||||
return a;
|
||||
return (a && a->type==&at_key)?a:NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Add table
Reference in a new issue