Skip to content
Snippets Groups Projects
Commit 1bd6e8af authored by Simon McVittie's avatar Simon McVittie
Browse files

flatpak-bwrap: Update from Flatpak 1.8.2


gcc 10 correctly diagnoses that if there are 0 bytes of arguments, we'll
allocate no bytes, leaving no space for this (unnecessary) '\0'.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent e227de05
No related branches found
No related tags found
No related merge requests found
Pipeline #4466 passed
/*
* Taken from Flatpak
* Last updated: Flatpak 1.6.1
* Last updated: Flatpak 1.8.2
*
* Copyright © 2014-2018 Red Hat, Inc
*
......@@ -298,7 +298,6 @@ flatpak_bwrap_bundle_args (FlatpakBwrap *bwrap,
data_len += strlen (bwrap->argv->pdata[i]) + 1;
data = g_new (gchar, data_len);
*data = 0;
ptr = data;
for (i = start; i < end; i++)
ptr = g_stpcpy (ptr, bwrap->argv->pdata[i]) + 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment