]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Make -n option actually do something.
authorUlrich Drepper <drepper@redhat.com>
Thu, 20 Sep 2001 19:06:30 +0000 (19:06 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 20 Sep 2001 19:06:30 +0000 (19:06 +0000)
malloc/memusage.sh

index e9025cb75a7997655c5945173400e29ae049b62e..e0d2fccc0fd353470e5f341c419a4bb58f15de5d 100755 (executable)
@@ -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"