From fb78c7fa4839d87fa4cc406f8bef0ddeb99aa431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Thu, 17 May 2018 23:12:52 +0000 Subject: [PATCH] Check argc Former-commit-id: 11ffbe17d94708b8755f3a228040e723c987b248 --- qpms/apps/hexlattice_ewald_altin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qpms/apps/hexlattice_ewald_altin.c b/qpms/apps/hexlattice_ewald_altin.c index a9acd89..590406f 100644 --- a/qpms/apps/hexlattice_ewald_altin.c +++ b/qpms/apps/hexlattice_ewald_altin.c @@ -152,6 +152,7 @@ int main (int argc, char **argv) { const double MAXR_REAL = 100 * LATTICE_H; const double MAXR_K = 100 * INVLATTICE_A; + if (argc < 2) abort(); char *omegastr = argv[1]; // char *kfile = argv[2]; // not used;, will be read from stdin