[geany/geany] 9876ce: Remove a redundant check

Colomban Wendling git-noreply at xxxxx
Thu Jul 26 00:03:11 UTC 2012


Branch:      refs/heads/document-messages
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 31 Jan 2012 13:41:15
Commit:      9876ce5a3fdfe04936f23d5fd12fa47d66d524dd
             https://github.com/geany/geany/commit/9876ce5a3fdfe04936f23d5fd12fa47d66d524dd

Log Message:
-----------
Remove a redundant check


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

Modified: src/main.c
8 files changed, 2 insertions(+), 6 deletions(-)
===================================================================
@@ -866,13 +866,9 @@ static void load_settings(void)
 
 void main_load_project_from_command_line(const gchar *locale_filename, gboolean use_session)
 {
-	gchar *pfile = NULL;
-
-	if (utils_is_uri(locale_filename))
-		pfile = utils_get_path_from_uri(locale_filename);
-	else
-		pfile = g_strdup(locale_filename);
+	gchar *pfile;
 
+	pfile = utils_get_path_from_uri(locale_filename);
 	if (pfile != NULL)
 	{
 		if (use_session)


@@ Diff output truncated at 100000 characters. @@


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



More information about the Commits mailing list