mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-30 04:43:24 -04: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>
This commit is contained in:
committed by
Alexander Larsson
parent
81d40fc8fa
commit
39823be84f
@@ -177,7 +177,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user