Exit if we cannot allocate a new tab during start

This commit is contained in:
Rene Kita
2022-04-17 16:31:39 +02:00
parent e6998fc9a4
commit e8a41ecfcc
+4
View File
@@ -1079,6 +1079,10 @@ main(int argc, char **argv)
newbuf->search_header = search_header;
if (CurrentTab == NULL) {
FirstTab = LastTab = CurrentTab = newTab();
if (!FirstTab) {
fprintf(stderr, "%s\n","Can't allocated memory");
exit(1);
}
nTab = 1;
Firstbuf = Currentbuf = newbuf;
}