From: Ulrich Drepper Date: Thu, 20 Sep 2001 19:06:30 +0000 (+0000) Subject: Make -n option actually do something. X-Git-Tag: cvs/glibc-2-2-5~264 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c788cd706d013c449c8415f34a16ca8024ad250d;p=thirdparty%2Fglibc.git Make -n option actually do something. --- diff --git a/malloc/memusage.sh b/malloc/memusage.sh index e9025cb75a7..e0d2fccc0fd 100755 --- a/malloc/memusage.sh +++ b/malloc/memusage.sh @@ -219,6 +219,11 @@ if test -n "$datafile"; then add_env="$add_env MEMUSAGE_OUTPUT=$datafile" fi +# Set program name. +if test -n "$progname"; then + add_env="$add_env MEMUSAGE_PROG_NAME=$progname" +fi + # Set buffer size. if test -n "$buffer"; then add_env="$add_env MEMUSAGE_BUFFER_SIZE=$buffer"