aboutsummaryrefslogtreecommitdiff
path: root/binutils/ar.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/ar.c')
-rw-r--r--binutils/ar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index 32ac404..ef8b5bd 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -738,6 +738,9 @@ main (int argc, char **argv)
arg_index = 0;
+ if (argv[arg_index] == NULL)
+ usage (0);
+
if (mri_mode)
{
default_deterministic ();