rpminject.c: add mtrace prologue.
authorjbj <devnull@localhost>
Tue, 26 Sep 2000 17:42:00 +0000 (17:42 +0000)
committerjbj <devnull@localhost>
Tue, 26 Sep 2000 17:42:00 +0000 (17:42 +0000)
CVS patchset: 4174
CVS date: 2000/09/26 17:42:00

tools/rpminject.c

index c839e23..c93a0ca 100644 (file)
@@ -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, "" );