/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2011, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2013, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
*
* Empire is free software: you can redistribute it and/or modify
* several.
* Each array element has a pointer to its name stored at offset OFFS.
* Search stops when this name is a null pointer.
+ * It ignores elements with an empty name.
* NEEDLE is compared to element names with mineq(NEEDLE, NAME).
* SIZE gives the size of an array element.
*/
name = *(char **)((char *)haystack + i * size + offs);
if (!name)
break;
+ if (!*name)
+ continue;
switch (mineq(needle, name)) {
case ME_MISMATCH:
break;