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 e9025cb..e0d2fcc 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"