|
From: <sv...@va...> - 2014-08-18 15:22:26
|
Author: florian
Date: Mon Aug 18 15:22:18 2014
New Revision: 14305
Log:
Fix a bug. The memory for 'dir' is no longer allocated by the caller.
Modified:
branches/BUF_REMOVAL/callgrind/fn.c
Modified: branches/BUF_REMOVAL/callgrind/fn.c
==============================================================================
--- branches/BUF_REMOVAL/callgrind/fn.c (original)
+++ branches/BUF_REMOVAL/callgrind/fn.c Mon Aug 18 15:22:18 2014
@@ -449,7 +449,7 @@
fn_name);
if (!found_dirname) {
- dir[0] = '\0';
+ *dir = (HChar *)""; // FIXME: constification
}
if (!found_file_line && !found_fn) {
|