Skip to content

Commit

Permalink
dir: use g_build_filename searching for flatpak repos
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloyoyoista committed Mar 1, 2024
1 parent 6007283 commit b2e7171
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions common/flatpak-dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -3958,9 +3958,7 @@ _flatpak_dir_find_new_flatpakrepos (FlatpakDir *self, OstreeRepo *repo)
}
g_ptr_array_add (remotes, NULL);

dir_str = g_strdup_printf ("%s/%s",
get_config_dir_location (),
FLATPAK_REMOTES_DIR);
dir_str = g_build_filename (get_config_dir_location (), FLATPAK_REMOTES_DIR, NULL);
_flatpak_dir_scan_new_flatpakrepos (dir_str,
&flatpakrepos,
(const char * const *) remotes->pdata);
Expand Down

0 comments on commit b2e7171

Please sign in to comment.