From: Eric Bollengier Date: Fri, 11 Jul 2008 22:43:53 +0000 (+0000) Subject: ebl fix segfault on win32 X-Git-Tag: Release-7.0.0~4314 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8b8474e59ebc3c7859ebe0d6f2043e3bd848f462;p=bacula%2Fbacula ebl fix segfault on win32 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7354 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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);