Close warning first might be garbage
First might be garbage if get_ranges would be called when dive_table.nr == 0. This would rather signal that something else is broken, but at least we shouldn't make it worse. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2c689964ab
commit
160fb321bc
@ -228,7 +228,7 @@ char *get_time_string(int seconds, int maxdays)
|
||||
static void get_ranges(char *buffer, int size)
|
||||
{
|
||||
int i, len;
|
||||
int first, last = -1;
|
||||
int first = -1, last = -1;
|
||||
|
||||
snprintf(buffer, size, "%s", translate("gettextFromC","for dives #"));
|
||||
for (i = 0; i < dive_table.nr; i++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user