From: Julian Seward Date: Tue, 1 May 2007 08:44:38 +0000 (+0000) Subject: Merge r6707 as a preventative measure (it's generally a good idea to X-Git-Tag: svn/VALGRIND_3_2_3~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7b556651239177256127d98685dfb89f47a7c71;p=thirdparty%2Fvalgrind.git Merge r6707 as a preventative measure (it's generally a good idea to set call-by-reference arguments, especially when the function comments says that they always are set.) git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_2_BRANCH@6719 --- diff --git a/coregrind/m_debuginfo/debuginfo.c b/coregrind/m_debuginfo/debuginfo.c index 6cebc8ba12..a1032528f5 100644 --- a/coregrind/m_debuginfo/debuginfo.c +++ b/coregrind/m_debuginfo/debuginfo.c @@ -599,8 +599,11 @@ Bool VG_(get_filename_linenum) ( Addr a, (dirname != NULL && dirname_available != NULL) ); search_all_loctabs ( a, &si, &locno ); - if (si == NULL) + if (si == NULL) { + if (dirname_available) *dirname_available = False; return False; + } + VG_(strncpy_safely)(filename, si->loctab[locno].filename, n_filename); *lineno = si->loctab[locno].lineno;