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/Kerneloops.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/plugins/Kerneloops.cpp') diff --git a/lib/plugins/Kerneloops.cpp b/lib/plugins/Kerneloops.cpp index d3ce2e8b..a847bfbf 100644 --- a/lib/plugins/Kerneloops.cpp +++ b/lib/plugins/Kerneloops.cpp @@ -125,8 +125,8 @@ std::string CAnalyzerKerneloops::GetLocalUUID(const char *pDebugDumpDir) { VERB3 log("Getting local universal unique identification"); - 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 std::string(""); char *oops = dd_load_text(dd, FILENAME_BACKTRACE); -- cgit