Fix a segmentation violation when zep isn't given a file to edit.

master 1.0
Mid Favila 3 months ago
parent 1d945d0390
commit 4d0d726e1d
  1. 6
      zep.c

@ -667,7 +667,11 @@ keymap_t keymap[] = {
int main(int argc, char **argv)
{
if (argc != 2) fatal("usage: " E_NAME " filename\n");
if(argc != 2)
{
printf("usage: %s filename\n", argv[0]);
exit(1);
}
initscr();
raw();
noecho();

Loading…
Cancel
Save