]> diplodocus.org Git - nmh/blobdiff - uip/mhshowsbr.c
Fixed extra and missing trailing commas in SEE ALSO sections of man pages.
[nmh] / uip / mhshowsbr.c
index 29c7c43585e6b2264fef2c20e69f68734d8e4c28..6f8a978f4a8499af145e27cee484749dd35d3cc0 100644 (file)
@@ -499,20 +499,15 @@ show_content_aux2 (CT ct, int alternate, char *cracked, char *buffer,
 
        default: {
            int status;
-            char *display_prog = NULL;
-
-            if (vecp > 2  &&  vec[2][0] != '\0') {
+            char *display_prog = vecp > 2  &&  vec[2][0] != '\0'
                 /* Copy the real display program name.  This relies on the
                    specific construction of vec[] by argsplit(). */
-                display_prog = mh_xstrdup(vec[2]);
-            }
-
-            arglist_free(file, vec);
+                ?  vec[2]
+                :  NULL;
 
             pidcheck ((status = pidXwait (child_id, display_prog)));
 
-            mh_xfree(display_prog);
-
+            arglist_free(file, vec);
            if (fd != NOTOK)
                (*ct->c_ceclosefnx) (ct);
            return (alternate ? OK : status);