diff --git a/statistics.c b/statistics.c index 0c823b1d8..6a6d177f4 100644 --- a/statistics.c +++ b/statistics.c @@ -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++) {