From 46585e67644ad8edf16ff8db5602cea325a975e5 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 15 Oct 2010 18:33:14 +0200 Subject: change dd_opendir API to return dd pointer (no need to dd_init it separately) Signed-off-by: Denys Vlasenko --- lib/plugins/Python.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/plugins/Python.cpp') diff --git a/lib/plugins/Python.cpp b/lib/plugins/Python.cpp index 77839570..ea3e1ade 100644 --- a/lib/plugins/Python.cpp +++ b/lib/plugins/Python.cpp @@ -24,8 +24,8 @@ using namespace std; string CAnalyzerPython::GetLocalUUID(const char *pDebugDumpDir) { - struct dump_dir *dd = dd_init(); - if (!dd_opendir(dd, pDebugDumpDir, DD_CLOSE_ON_OPEN_ERR)) + struct dump_dir *dd = dd_opendir(pDebugDumpDir, /*flags:*/ 0); + if (!dd) return string(""); char *bt = dd_load_text(dd, FILENAME_BACKTRACE); -- cgit