This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
A patch for typo in sprof.c
- To: Ulrich Drepper <drepper at cygnus dot com>
- Subject: A patch for typo in sprof.c
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Thu, 17 May 2001 11:04:04 -0700
- Cc: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
I assume it is a typo in sprof.c Without it, read_symbols goes into
a endless loop.
H.J.
----
2001-05-17 H.J. Lu <hjl@gnu.org>
* elf/sprof.c (read_symbols): Move "++symtab" into the while
loop.
--- elf/sprof.c.strip Thu Jan 4 16:57:34 2001
+++ elf/sprof.c Thu May 17 10:59:10 2001
@@ -1006,9 +1006,9 @@ read_symbols (struct shobj *shobj)
obstack_free (&shobj->ob_sym, newsym);
}
}
- }
- ++symtab;
+ ++symtab;
+ }
}
sortsym = malloc (n * sizeof (struct known_symbol *));