diff options
Diffstat (limited to 'src/shared/main-func.h')
-rw-r--r-- | src/shared/main-func.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/main-func.h b/src/shared/main-func.h index 05cdffeec0..81a5c1813c 100644 --- a/src/shared/main-func.h +++ b/src/shared/main-func.h @@ -15,6 +15,7 @@ #define _DEFINE_MAIN_FUNCTION(intro, impl, ret) \ int main(int argc, char *argv[]) { \ int r; \ + assert_se(argc > 0 && !isempty(argv[0])); \ save_argc_argv(argc, argv); \ intro; \ r = impl; \ |