From 05a5fb4b056e0717696ce3ec950487c3060cd38a Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Tue, 22 Nov 2005 21:53:39 +0000 Subject: [PATCH] One less dynamically alllocated array. We can just use vfprint. This commit was SVN r8239. --- opal/util/show_help.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/opal/util/show_help.c b/opal/util/show_help.c index 2f3fccc381..810123c27e 100644 --- a/opal/util/show_help.c +++ b/opal/util/show_help.c @@ -248,7 +248,7 @@ static int output(bool want_error_header, char **lines, { int i, count; size_t len; - char *concat, *formatted; + char *concat; /* See how much space we need */ @@ -290,16 +290,10 @@ static int output(bool want_error_header, char **lines, } /* Apply formatting */ - - vasprintf(&formatted, concat, arglist); - - /* Print it out */ - - fprintf(stderr, formatted); + vfprintf( stderr, concat, arglist ); /* All done */ - free(formatted); free(concat); return OMPI_SUCCESS; }