|
From: <sv...@va...> - 2007-05-01 08:44:40
|
Author: sewardj
Date: 2007-05-01 09:44:38 +0100 (Tue, 01 May 2007)
New Revision: 6719
Log:
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.)
Modified:
branches/VALGRIND_3_2_BRANCH/coregrind/m_debuginfo/debuginfo.c
Modified: branches/VALGRIND_3_2_BRANCH/coregrind/m_debuginfo/debuginfo.c
===================================================================
--- branches/VALGRIND_3_2_BRANCH/coregrind/m_debuginfo/debuginfo.c 2007-05-01 08:31:17 UTC (rev 6718)
+++ branches/VALGRIND_3_2_BRANCH/coregrind/m_debuginfo/debuginfo.c 2007-05-01 08:44:38 UTC (rev 6719)
@@ -599,8 +599,11 @@
(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;
|