int *topsz, *bottomsz;
{
int c, i, row, col, trackx, idx;
- boolean valid = TRUE, matchprev = FALSE, update_right, disregard;
+ boolean valid = TRUE, matchprev = FALSE, update_right, disregard = FALSE;
if (!windowdata_init && !check_windowdata())
return FALSE;
col = 1;
trackx = 1;
update_right = FALSE;
+ idx = -1;
for (i = 0; fieldorder[row][i] != BL_FLUSH; ++i) {
idx = fieldorder[row][i];
if (!status_activefields[idx])
tty_status[NOW][idx].redraw = TRUE;
col += tty_status[NOW][idx].lth;
}
- if (row && bottomsz)
- *bottomsz = col + tty_status[NOW][idx].lth;
- else if (topsz)
- *topsz = col + tty_status[NOW][idx].lth;
+ if (idx != -1) {
+ if (row && bottomsz)
+ *bottomsz = col + tty_status[NOW][idx].lth;
+ else if (topsz)
+ *topsz = col + tty_status[NOW][idx].lth;
+ }
}
return valid;
}
const char *val;
int x, y;
{
- int i, n, ncols, lth;
+ int i, n, ncols, lth = 0;
struct WinDesc *cw = 0;
const char *text = (char *)0;
/* hitpointbar using hp percent calculation */
int bar_pos, bar_len;
char *bar2 = (char *)0;
- char bar[MAXCO], savedch;
+ char bar[MAXCO], savedch = 0;
boolean twoparts = FALSE;
bar_len = strlen(text);