mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix db_open args.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3331 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
dcab989561
commit
58c6b88a3c
@ -41,6 +41,7 @@
|
||||
#include "window-help.h"
|
||||
#include "gnc-html.h"
|
||||
#include "gnc-html-history.h"
|
||||
#include "gnc-engine-util.h"
|
||||
#include "File.h"
|
||||
|
||||
struct _gnc_help_window {
|
||||
@ -63,6 +64,9 @@ struct _gnc_help_window {
|
||||
|
||||
static GList * open_help_windows = NULL;
|
||||
|
||||
/* This static indicates the debugging module that this .o belongs to. */
|
||||
static short module = MOD_GUI;
|
||||
|
||||
/********************************************************************
|
||||
* gnc_help_window_check_urltype
|
||||
* is it OK to show a certain URLType in this window?
|
||||
@ -473,9 +477,9 @@ gnc_help_window_new() {
|
||||
|
||||
indexfile = gncFindFile("help-search-index.db");
|
||||
if((err = db_open(indexfile,
|
||||
DB_UNKNOWN, 0, 0666,
|
||||
DB_UNKNOWN, DB_RDONLY, 0644,
|
||||
NULL, NULL, &(help->index_db))) != 0) {
|
||||
printf("Failed to open help index DB '%s' : %s\n",
|
||||
PERR("Failed to open help index DB '%s' : %s\n",
|
||||
indexfile, strerror(err));
|
||||
help->index_db = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user