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:
Dan Nicholson authored and Atomic Bot committed 2017-05-03 18:08:37 +00:00
1 parent 4c731165bb
commit 59897f2b84
1 file changed
+1 -1
+1 -1
View File
@@ -2459,7 +2459,7 @@ repo_remote_fetch_summary (OstreeRepo *self,
g_autoptr(GMainContext) mainctx = NULL;
gboolean ret = FALSE;
gboolean from_cache = FALSE;
g_autofree char *url_override = NULL;
const char *url_override = NULL;
g_autoptr(GPtrArray) mirrorlist = NULL;
if (options)