diff options
Diffstat (limited to 'app/flatpak-builtins-build.c')
-rw-r--r-- | app/flatpak-builtins-build.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/flatpak-builtins-build.c b/app/flatpak-builtins-build.c index b18d6e65..f9f1a404 100644 --- a/app/flatpak-builtins-build.c +++ b/app/flatpak-builtins-build.c @@ -1,4 +1,4 @@ -/* +/* vi:set et sw=2 sts=2 cin cino=t0,f0,(0,{s,>2s,n-s,^-s,e-s: * Copyright © 2014 Red Hat, Inc * * This program is free software; you can redistribute it and/or @@ -189,7 +189,7 @@ flatpak_builtin_build (int argc, char **argv, GCancellable *cancellable, GError FlatpakRunFlags run_flags; const char *group = NULL; const char *runtime_key = NULL; - const char *dest = NULL; + g_autofree char *dest = NULL; gboolean is_app = FALSE; gboolean is_extension = FALSE; gboolean is_app_extension = FALSE; @@ -487,7 +487,7 @@ flatpak_builtin_build (int argc, char **argv, GCancellable *cancellable, GError /* We add the actual bind below so that we're not shadowed by other extensions or their tmpfs */ if (extension_point) - dest = extension_point; + dest = g_strdup (extension_point); else if (is_app) dest = g_strdup ("/app"); else |