Merge pull request #1238 from joshhartigan/zero-division-patch

clang: Division by zero
This commit is contained in:
Justin M. Keyes 2014-09-25 01:54:39 -04:00
commit ea26283cf6

View File

@ -7630,7 +7630,7 @@ void unshowmode(int force)
static void draw_tabline(void)
{
int tabcount = 0;
int tabwidth;
int tabwidth = 0;
int col = 0;
int scol = 0;
int attr;
@ -7676,9 +7676,13 @@ static void draw_tabline(void)
++tabcount;
}
if (tabcount > 0) {
tabwidth = (Columns - 1 + tabcount / 2) / tabcount;
if (tabwidth < 6)
}
if (tabwidth < 6) {
tabwidth = 6;
}
attr = attr_nosel;
tabcount = 0;