summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-05 14:03:51 +0100
committerraveit65 <[email protected]>2021-02-27 20:39:49 +0100
commit3b78969183c1ade7f40189a76015f4a47ff3fa3a (patch)
treed3c894f90340b910799fcc80b3622438d7acdbd0 /src
parent9e050a5d47de07f0b5a661c8421a808c4b28d9db (diff)
downloadengrampa-3b78969183c1ade7f40189a76015f4a47ff3fa3a.tar.bz2
engrampa-3b78969183c1ade7f40189a76015f4a47ff3fa3a.tar.xz
dlg-package-installer: Don't build the path to packages.match
Diffstat (limited to 'src')
-rw-r--r--src/dlg-package-installer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dlg-package-installer.c b/src/dlg-package-installer.c
index 313b0df..0b18441 100644
--- a/src/dlg-package-installer.c
+++ b/src/dlg-package-installer.c
@@ -125,13 +125,13 @@ get_packages_real_names (char **names)
{
char **real_names;
GKeyFile *key_file;
- char *filename;
int i;
real_names = g_new0 (char *, g_strv_length (names));
key_file = g_key_file_new ();
- filename = g_build_filename (PRIVDATADIR, "packages.match", NULL);
- g_key_file_load_from_file (key_file, filename, G_KEY_FILE_NONE, NULL);
+ g_key_file_load_from_file (key_file,
+ PRIVDATADIR "/packages.match",
+ G_KEY_FILE_NONE, NULL);
for (i = 0; names[i] != NULL; i++) {
char *real_name;
@@ -147,7 +147,6 @@ get_packages_real_names (char **names)
real_name = NULL;
}
- g_free (filename);
g_key_file_free (key_file);
return real_names;