mirror of https://github.com/fairyglade/ly.git
Fix undefined value in XCB connection check
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
94c306758a
commit
2b1e4dc6c9
|
|
@ -437,7 +437,7 @@ fn executeX11Cmd(log_file: *LogFile, allocator: std.mem.Allocator, shell: []cons
|
|||
std.process.exit(1);
|
||||
}
|
||||
|
||||
var ok: c_int = undefined;
|
||||
var ok: c_int = -1;
|
||||
var xcb: ?*interop.xcb.xcb_connection_t = null;
|
||||
while (ok != 0) {
|
||||
xcb = interop.xcb.xcb_connect(null, null);
|
||||
|
|
|
|||
Loading…
Reference in New Issue