mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 14:13:26 +00:00
run: Avoid cast warning when built with -Wwrite-strings
We're not going to call XauDisposeAuth on local_xa, so it's OK to put a "borrowed" constant string here. Signed-off-by: Simon McVittie <smcv@collabora.com> (cherry picked from commit 39823be84f1ff23f4efb97b7ef99dd92889d0559)
This commit is contained in:
parent
723ae9d5fa
commit
aa5db72e1c
@ -176,7 +176,7 @@ write_xauth (char *number, FILE *output)
|
||||
local_xa = *xa;
|
||||
if (local_xa.number)
|
||||
{
|
||||
local_xa.number = "99";
|
||||
local_xa.number = (char *) "99";
|
||||
local_xa.number_length = 2;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user