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 2017-05-03 11:31:58 -05:00 committed by Atomic Bot
parent 4c731165bb
commit 59897f2b84

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)