diff --git a/frontend/src/main.c b/frontend/src/main.c index cea5e71..a781d9f 100644 --- a/frontend/src/main.c +++ b/frontend/src/main.c @@ -158,6 +158,12 @@ int MAIN(const int argc, CHR *const argv[]) /* Parse arguments */ /* ----------------------------------------------------- */ + if (argc < 1) + { + FPUTS(T("Error: Argument array is empty. The program was called incorrectly!\n\n"), stderr); + goto clean_up; + } + if (argc < 2) { FPRINTF(stderr, T("Error: Nothing to do. Please type '%") T(PRISTR) T(" --help' for details!\n\n"), get_file_name(argv[0U]));