Removed dead stores.

This commit is contained in:
wyld-sw
2018-07-15 10:29:57 -04:00
parent 5cca63a01c
commit bf941bc9b2
28 changed files with 85 additions and 139 deletions

View File

@@ -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