From 419fe62da8607214d2aabddfa4ca8c563ad81b19 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 16 Sep 2019 17:35:15 +0200 Subject: [PATCH] Cleanup - it shouldn't be necessary to call fill_pathname_slash after fill_pathname_join --- file_path_special.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/file_path_special.c b/file_path_special.c index b3f6bffcd1..d0ed5de396 100644 --- a/file_path_special.c +++ b/file_path_special.c @@ -179,9 +179,6 @@ void fill_pathname_application_special(char *s, fill_pathname_join(s2, s1, "png", PATH_MAX_LENGTH * sizeof(char) ); - fill_pathname_slash(s2, - PATH_MAX_LENGTH * sizeof(char) - ); strlcpy(s, s2, len); free(s1); free(s2); @@ -324,9 +321,6 @@ void fill_pathname_application_special(char *s, fill_pathname_application_special(s1, PATH_MAX_LENGTH * sizeof(char), APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI); - fill_pathname_slash(s1, - PATH_MAX_LENGTH * sizeof(char) - ); strlcpy(s, s1, len); free(s1); @@ -390,9 +384,6 @@ void fill_pathname_application_special(char *s, s1, "avatars", PATH_MAX_LENGTH * sizeof(char) ); - fill_pathname_slash(s2, - PATH_MAX_LENGTH * sizeof(char) - ); strlcpy(s, s2, len); free(s1); free(s2); @@ -415,9 +406,6 @@ void fill_pathname_application_special(char *s, s1, "badges", PATH_MAX_LENGTH * sizeof(char) ); - fill_pathname_slash(s2, - PATH_MAX_LENGTH * sizeof(char) - ); strlcpy(s, s2, len); free(s1); free(s2);