From c4fdff009ecdc8d6391e8ed5e038b1af5bb3648c Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 11 Jul 2008 22:43:53 +0000 Subject: [PATCH] ebl fix segfault on win32 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7354 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bacula/src/qt-console/main.cpp b/bacula/src/qt-console/main.cpp index 6e471829f7..77c686435c 100644 --- a/bacula/src/qt-console/main.cpp +++ b/bacula/src/qt-console/main.cpp @@ -55,12 +55,20 @@ extern bool parse_bat_config(CONFIG *config, const char *configfile, int exit_co static CONFIG *config; static char *configfile = NULL; +#ifdef HAVE_WIN32 +void dummy_free_jcr(JCR *jcr) +{} +#endif + int main(int argc, char *argv[]) { int ch; bool no_signals = true; bool test_config = false; +#ifdef HAVE_WIN32 + JCR *jcr = new_jcr(sizeof(JCR), dummy_free_jcr); +#endif app = new QApplication(argc, argv); app->setQuitOnLastWindowClosed(true); -- 2.39.5