]> diplodocus.org Git - nmh/commitdiff
Fixed check of return value of show_content_aux().
authorDavid Levine <levinedl@acm.org>
Mon, 12 Jan 2015 01:10:23 +0000 (19:10 -0600)
committerDavid Levine <levinedl@acm.org>
Mon, 12 Jan 2015 01:10:23 +0000 (19:10 -0600)
uip/mhbuildsbr.c

index ff1bd3e98d68ef3e7d88240670f06351e3ca02ed..2e177c47a76f8c3e5ee2523a012617a5ae7a3280 100644 (file)
@@ -2221,6 +2221,7 @@ expand_pseudoheader (CT ct, CT *text_plain_ct, struct multipart *m,
     struct str2init *s2i;
     CT reply_ct;
     struct part *part;
+    int status;
 
     type_p = getcpy (type);
     if ((subtype_p = strchr (type_p, '/'))) {
@@ -2247,7 +2248,9 @@ expand_pseudoheader (CT ct, CT *text_plain_ct, struct multipart *m,
     /* Convert here . . . */
     ct->c_storeproc = getcpy (convert_command);
     ct->c_umask = ~m_gmprot ();
-    if (show_content_aux (ct, 0, convert_command, NULL, NULL) == NOTOK) {
+
+    if ((status = show_content_aux (ct, 0, convert_command, NULL, NULL)) !=
+        OK) {
         admonish (NULL, "store of %s content failed", type);
     }
     free (convert_command);