[Commits] [SCM] claws branch, master, updated. 3.13.2-60-g19f795c

claws at claws-mail.org claws at claws-mail.org
Wed Feb 24 21:19:13 CET 2016


The branch, master has been updated
       via  19f795c347ff49d380866a97fa1ff4cff2d880f9 (commit)
      from  01faf42f4da160bda10cca86dce9fa8e7524ae74 (commit)

Summary of changes:
 src/common/utils.c |   16 ----------------
 1 file changed, 16 deletions(-)


- Log -----------------------------------------------------------------
commit 19f795c347ff49d380866a97fa1ff4cff2d880f9
Author: Paul <paul at claws-mail.org>
Date:   Wed Feb 24 20:19:08 2016 +0000

    remove the whole unncessary if block, completing the last commit

diff --git a/src/common/utils.c b/src/common/utils.c
index 80e0d7e..ab063ce 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -4559,22 +4559,6 @@ static gchar *mailcap_get_command_in_file(const gchar *path, const gchar *type,
 			result = g_strdup(trimmed);
 			g_strfreev(parts);
 			fclose(fp);
-			/* if there are no single quotes around %s, add them.
-			 * '.*%s.*' is ok, as in display 'png:%s'
-			 */
-			if (strstr(result, "%s") 
-			&& !(strstr(result, "'") < strstr(result,"%s") &&
-			     strstr(strstr(result,"%s"), "'"))) {
-				gchar *start = g_strdup(result);
-				gchar *end = g_strdup(strstr(result, "%s")+2);
-				gchar *tmp;
-				*strstr(start, "%s") = '\0';
-				tmp = g_strconcat(start,"%s",end, NULL);
-				g_free(start);
-				g_free(end);
-				g_free(result);
-				result = tmp;
-			}
 			if (needsterminal) {
 				gchar *tmp = g_strdup_printf("xterm -e %s", result);
 				g_free(result);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list