pull: Fix crash specifying override URL in summary fetch
The summary URL override is looked up with "&s", which directly exchanges the data to a pointer without allocation. This was causing a segfault calling ostree_repo_remote_fetch_summary_with_options from pygobject. Closes: #829 Approved by: jlebon
This commit is contained in:
parent
4c731165bb
commit
59897f2b84
|
|
@ -2459,7 +2459,7 @@ repo_remote_fetch_summary (OstreeRepo *self,
|
||||||
g_autoptr(GMainContext) mainctx = NULL;
|
g_autoptr(GMainContext) mainctx = NULL;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
gboolean from_cache = FALSE;
|
gboolean from_cache = FALSE;
|
||||||
g_autofree char *url_override = NULL;
|
const char *url_override = NULL;
|
||||||
g_autoptr(GPtrArray) mirrorlist = NULL;
|
g_autoptr(GPtrArray) mirrorlist = NULL;
|
||||||
|
|
||||||
if (options)
|
if (options)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue