diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-12-18 12:27:26 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-12-18 12:27:26 +0100 |
commit | fdc9b62988842909a88d3c01af4d234de148abb9 (patch) | |
tree | 7f21e97d0006b0b2320d69dcea243ca4a34cc590 /lib/test-lib.c | |
parent | feed03c284528ab81d242f6c86784e70564eadb7 (diff) | |
download | xdg-app-fdc9b62988842909a88d3c01af4d234de148abb9.tar.gz |
lib: Always initialize the repo on Installation creation
This means we can fail if the repo doesn't exist yet and we have
no write rights.
Diffstat (limited to 'lib/test-lib.c')
-rw-r--r-- | lib/test-lib.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/test-lib.c b/lib/test-lib.c index d4a55db..60ba307 100644 --- a/lib/test-lib.c +++ b/lib/test-lib.c @@ -25,7 +25,12 @@ main (int argc, char *argv[]) GError *error = NULL; int i, j; - installation = xdg_app_installation_new_user (); + installation = xdg_app_installation_new_user (&error); + if (installation == NULL) + { + g_print ("error: %s\n", error->message); + return 1; + } if (argc == 3) { |