mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-20 02:21:44 +01:00
Removed dead stores.
This commit is contained in:
@@ -1083,13 +1083,13 @@ static int read_type_list(FILE *shop_f, struct shop_buy_data *list,
|
||||
int new_format, int max)
|
||||
{
|
||||
int tindex, num, len = 0, error = 0;
|
||||
char *ptr, buf[MAX_STRING_LENGTH], *buf1;
|
||||
char *ptr, buf[MAX_STRING_LENGTH];
|
||||
|
||||
if (!new_format)
|
||||
return (read_list(shop_f, list, 0, max, LIST_TRADE));
|
||||
|
||||
do {
|
||||
buf1 = fgets(buf, sizeof(buf), shop_f);
|
||||
fgets(buf, sizeof(buf), shop_f);
|
||||
if ((ptr = strchr(buf, ';')) != NULL)
|
||||
*ptr = '\0';
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user