Skip to content

Commit f3c0be6

Browse files
committed
fix(dbus): 修复一处指针错误
1 parent 00b72a4 commit f3c0be6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/dbus/service.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ fn serviceHandler(data: ?*anyopaque, msg: *Message) libdbus.HandlerResult {
344344
const alloc = std.heap.page_allocator;
345345
var xml = std.Io.Writer.Allocating.init(alloc);
346346
defer xml.deinit();
347-
var writer = xml.writer;
347+
var writer = &xml.writer;
348348
writer.writeAll(
349349
\\<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"><node>
350350
) catch unreachable;

0 commit comments

Comments
 (0)