File mutt-1.5.9i-pgpewrap.diff of Package mutt

---
 pgpewrap.c |    5 +++++
 1 file changed, 5 insertions(+)

--- pgpewrap.c
+++ pgpewrap.c	2018-07-04 12:04:58.958652059 +0000
@@ -58,6 +58,11 @@ int main(int argc, char **argv) {
 	}
 	*opt = NULL;
 
+	if (opts[0] == NULL)
+	{
+	  fprintf(stderr, "Command line usage: %s [flags] -- prefix [recipients]\n", argv[0]);
+	  return 1;
+	}
 	execvp(opts[0], opts);
 	perror(argv[0]);
 	return 2;
openSUSE Build Service is sponsored by