diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-15 18:33:14 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-15 18:33:14 +0200 |
commit | 46585e67644ad8edf16ff8db5602cea325a975e5 (patch) | |
tree | 5739256404e8193abb219c42f6e291b21f947881 /src/daemon/abrt-action-bugzilla.cpp | |
parent | 9d9a9dd41313ed5d2e544bb3bcdf08dab6f38a48 (diff) | |
download | abrt-46585e67644ad8edf16ff8db5602cea325a975e5.tar.gz abrt-46585e67644ad8edf16ff8db5602cea325a975e5.tar.xz abrt-46585e67644ad8edf16ff8db5602cea325a975e5.zip |
change dd_opendir API to return dd pointer (no need to dd_init it separately)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/daemon/abrt-action-bugzilla.cpp')
-rw-r--r-- | src/daemon/abrt-action-bugzilla.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/abrt-action-bugzilla.cpp b/src/daemon/abrt-action-bugzilla.cpp index c7768556..6c989ea0 100644 --- a/src/daemon/abrt-action-bugzilla.cpp +++ b/src/daemon/abrt-action-bugzilla.cpp @@ -569,8 +569,8 @@ static void report_to_bugzilla( const char *dump_dir_name, /*const*/ map_plugin_settings_t& settings) { - struct dump_dir *dd = dd_init(); - if (!dd_opendir(dd, dump_dir_name, DD_CLOSE_ON_OPEN_ERR)) + struct dump_dir *dd = dd_opendir(dump_dir_name, /*flags:*/ 0); + if (!dd) { throw CABRTException(EXCEP_PLUGIN, _("Can't open '%s'"), dump_dir_name); } |