aboutsummaryrefslogtreecommitdiff
path: root/plugins/urlize.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/urlize.c')
-rw-r--r--plugins/urlize.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/urlize.c b/plugins/urlize.c
index d4d00dd6..5bff4b2f 100644
--- a/plugins/urlize.c
+++ b/plugins/urlize.c
@@ -56,6 +56,12 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ /* Need at least 2 args */
+ if (argc < 3) {
+ print_help();
+ exit (STATE_UNKNOWN);
+ }
+
while (1) {
c = getopt_long (argc, argv, "+hVu:", longopts, &option);