Commit 589ebd8c 589ebd8c9eec05e9d2ff7f1cde2994a6837cbfc9 by Sergey Poznyakoff

Fix FPE (noted by Matthew Whitworth)

1 parent 0df5fe6a
......@@ -41,6 +41,8 @@ mail_headers (int argc, char **argv)
for (mp = list; mp; mp = mp->next)
num++;
if (num == 0)
return 0;
lines = (lines / num) - 2;
if (lines < 0)
lines = util_screen_lines ();
......