g10: Fix gpgcompose.c.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 17 May 2017 01:14:43 +0000 (10:14 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 17 May 2017 01:14:43 +0000 (10:14 +0900)
* g10/gpgcompose.c (show_help): Check return value.

--

Fixes-commit: 00b7767bc6fe309aa20375c859ebf708cfc7b9ea
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/gpgcompose.c

index 4a2cb81..e541cfe 100644 (file)
@@ -306,7 +306,7 @@ show_help (struct option options[])
       if (! option)
         space = 72;
       formatted = format_text (tmp, space, space + 4);
-      if (!format_text)
+      if (!formatted)
         abort ();
 
       if (tmp != help)