mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-24 08:29:34 -04:00
install: Fix printing of NULL in already-installed error message
This commit is contained in:
1 parent
55e934ee76
commit
0823d1960c
1 file changed
+2
-2
@@ -135,7 +135,7 @@ xdg_app_builtin_install_runtime (int argc, char **argv, GCancellable *cancellabl
|
||||
deploy_base = xdg_app_dir_get_deploy_dir (dir, ref);
|
||||
if (g_file_query_exists (deploy_base, cancellable))
|
||||
{
|
||||
xdg_app_fail (error, "Runtime %s branch %s already installed", runtime, branch);
|
||||
xdg_app_fail (error, "Runtime %s branch %s already installed", runtime, branch ? branch : "master");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ xdg_app_builtin_install_app (int argc, char **argv, GCancellable *cancellable, G
|
||||
deploy_base = xdg_app_dir_get_deploy_dir (dir, ref);
|
||||
if (g_file_query_exists (deploy_base, cancellable))
|
||||
{
|
||||
xdg_app_fail (error, "App %s branch %s already installed", app, branch);
|
||||
xdg_app_fail (error, "App %s branch %s already installed", app, branch ? branch : "master");
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user