https://bugzilla.novell.com/show_bug.cgi?id=662216
https://bugzilla.novell.com/show_bug.cgi?id=662216#c2
--- Comment #2 from Dr. Werner Fink 2011-01-14 12:44:01 UTC ---
IMHO the better solution would be to use a further address/pointer to
remember if malloc() was used and to free this if it was used. The
copy within make_sidebar_entry() is not affected by this way nor the
pointer to the internal static array of the (g)libc basename(3)
function call (it should be noterd that basename(3) is not unique
in the glibc). AFAIS from the patch libgen.h is included that means
we have the POSIX version of basename(3) around which modifies its
argument (here tmp->path), therefore a strdup() would be a better
method but this would include also a free() before doing a malloc().
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.