[geany/geany-plugins] 162ccc: GeanyPrj: Fix an invalid return

Colomban Wendling git-noreply at xxxxx
Sun Jul 8 16:28:38 UTC 2012


Branch:      refs/heads/1.22_release
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 08 Jul 2012 16:28:38
Commit:      162ccce946ca7508a779a721216ed42c5cd584d4
             https://github.com/geany/geany-plugins/commit/162ccce946ca7508a779a721216ed42c5cd584d4

Log Message:
-----------
GeanyPrj: Fix an invalid return


Modified Paths:
--------------
    geanyprj/src/project.c

Modified: geanyprj/src/project.c
5 files changed, 4 insertions(+), 1 deletions(-)
===================================================================
@@ -247,7 +247,10 @@ void geany_project_set_type_string(struct GeanyPrj *prj, const gchar *val)
 	for (i = 0; i < sizeof(project_type_string) / sizeof(project_type_string[0]); i++)
 	{
 		if (strcmp(val, project_type_string[i]) == 0)
-			return geany_project_set_type_int(prj, i);
+		{
+			geany_project_set_type_int(prj, i);
+			return;
+		}
 	}
 }
 


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Plugins-Commits mailing list