[geany/geany] ce0f57: Fix segfault after editing project filetype execute command

Nick Treleaven git-noreply at xxxxx
Sat Oct 5 11:31:09 UTC 2019


Branch:      refs/heads/build-exec
Author:      Nick Treleaven <n at trelsoft.com>
Committer:   Nick Treleaven <n at trelsoft.com>
Date:        Sat, 05 Oct 2019 11:31:09 UTC
Commit:      ce0f57d1767e52137d3cf96824a7755c5b173f2d
             https://github.com/geany/geany/commit/ce0f57d1767e52137d3cf96824a7755c5b173f2d

Log Message:
-----------
Fix segfault after editing project filetype execute command


Modified Paths:
--------------
    src/build.c

Modified: src/build.c
3 lines changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -2238,11 +2238,13 @@ void build_read_project(GeanyFiletype *ft, BuildTableData build_properties)
 	if (ft != NULL)
 	{
 		menu_dst.dst[GEANY_GBG_FT] = &(ft->priv->projfilecmds);
+		menu_dst.dst[GEANY_GBG_EXEC] = &ft->priv->projexeccmds;
 		menu_dst.fileregexstr = &(ft->priv->projerror_regex_string);
 	}
 	else
 	{
 		menu_dst.dst[GEANY_GBG_FT] = NULL;
+		menu_dst.dst[GEANY_GBG_EXEC] = NULL;
 		menu_dst.fileregexstr = NULL;
 	}
 	menu_dst.dst[GEANY_GBG_NON_FT] = &non_ft_proj;
@@ -2277,6 +2279,7 @@ static void show_build_commands_dialog(void)
 	response = gtk_dialog_run(GTK_DIALOG(dialog));
 
 	prefdsts.dst[GEANY_GBG_NON_FT] = &non_ft_pref;
+	prefdsts.dst[GEANY_GBG_EXEC_IND] = NULL;
 	if (ft != NULL)
 	{
 		prefdsts.dst[GEANY_GBG_FT] = &(ft->priv->homefilecmds);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list