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