summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-09-26 17:42:00 +0000
committerjbj <devnull@localhost>2000-09-26 17:42:00 +0000
commit1bf24642f706123f7997b27270eaeb89bf3e582e (patch)
tree4f1b577e6fcd1c518e3e831d78e0992a4083d0e8
parent750614f58fffbd1fca8279ab30a21354990f1072 (diff)
downloadlibrpm-tizen-1bf24642f706123f7997b27270eaeb89bf3e582e.tar.gz
librpm-tizen-1bf24642f706123f7997b27270eaeb89bf3e582e.tar.bz2
librpm-tizen-1bf24642f706123f7997b27270eaeb89bf3e582e.zip
rpminject.c: add mtrace prologue.
CVS patchset: 4174 CVS date: 2000/09/26 17:42:00
-rw-r--r--tools/rpminject.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/rpminject.c b/tools/rpminject.c
index c839e23ff..c93a0ca67 100644
--- a/tools/rpminject.c
+++ b/tools/rpminject.c
@@ -529,6 +529,10 @@ main(int argc, char *argv[])
int ec = 0;
injmode_t lastmode = INJ_UNKNOWN;
+#if HAVE_MCHECK_H && HAVE_MTRACE
+ mtrace(); /* Trace malloc only if MALLOC_TRACE=mtrace-output-file. */
+#endif
+
setprogname(argv[0]); /* Retrofit glibc __progname */
(void)setlocale(LC_ALL, "" );