Fix crash opening project when Geany started with no geany.conf.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4325 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Lex Trotman 2009-10-16 00:53:00 +00:00
parent 9fd485f204
commit 24ed3cd619
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2009-10-16 Lex Trotman <elextr(at)gmail(dot)com>
* src/build.c:
Fix crash opening project when Geany started with no geany.conf.
2009-10-15 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* scintilla/ScintillaBase.h, scintilla/ScintillaBase.cxx, src/utils.c,

View File

@ -2283,8 +2283,8 @@ void build_load_menu(GKeyFile *config, GeanyBuildSource src, gpointer p)
ft->error_regex_string = g_key_file_get_string(config, "build_settings", "error_regex", NULL);
break;
case GEANY_BCS_PROJ:
if (non_ft_proj == NULL)
non_ft_proj = g_new0(GeanyBuildCommand, build_groups_count[GEANY_GBG_NON_FT]);
if (non_ft_pref == NULL)
non_ft_pref = g_new0(GeanyBuildCommand, build_groups_count[GEANY_GBG_NON_FT]);
basedir = project_get_base_path();
if (basedir == NULL)
basedir = g_strdup("%d");