~leon_plickat/nfm

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH nfm] KeyOperation/misc: Update to new alloc convention

Details
Message ID
<20230102094059.2890-1-mail@hmachet.com>
DKIM signature
missing
Download raw message
Patch: +5 -5
---
 src/key-operations/misc.zig | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/key-operations/misc.zig b/src/key-operations/misc.zig
index b132edc92219..ad89c6269f47 100644
--- a/src/key-operations/misc.zig
+++ b/src/key-operations/misc.zig
@@ -66,7 +66,7 @@ pub fn runBackground(op: *const KeyOperation) !void {

fn run(op: *const KeyOperation, foreground: bool) !void {
    const cmd = (try getFormattedBuffer(op)) orelse return;
    defer context.gpa.allocator().free(cmd);
    defer context.alloc.free(cmd);
    if (foreground) {
        try context.run(cmd, "/bin/sh or subprocess");
    } else {
@@ -97,25 +97,25 @@ pub fn setViewFiles(_: *const KeyOperation) !void {

pub fn search(op: *const KeyOperation) !void {
    const str = (try getFormattedBuffer(op)) orelse return;
    defer context.gpa.allocator().free(str);
    defer context.alloc.free(str);
    try context.search(str);
}

pub fn select(op: *const KeyOperation) !void {
    const str = (try getFormattedBuffer(op)) orelse return;
    defer context.gpa.allocator().free(str);
    defer context.alloc.free(str);
    try context.select(str);
}

pub fn keep(op: *const KeyOperation) !void {
    const str = (try getFormattedBuffer(op)) orelse return;
    defer context.gpa.allocator().free(str);
    defer context.alloc.free(str);
    try context.keep(str);
}

pub fn discard(op: *const KeyOperation) !void {
    const str = (try getFormattedBuffer(op)) orelse return;
    defer context.gpa.allocator().free(str);
    defer context.alloc.free(str);
    try context.discard(str);
}

-- 
2.39.0

[nfm/patches/alpine.yml] build failed

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CPHLU2I9E4AI.1E3RAENVN0D93@cirno>
In-Reply-To
<20230102094059.2890-1-mail@hmachet.com> (view parent)
DKIM signature
missing
Download raw message
nfm/patches/alpine.yml: FAILED in 58s

[KeyOperation/misc: Update to new alloc convention][0] from [Hugo Machet][1]

[0]: https://lists.sr.ht/~leon_plickat/nfm/patches/37904
[1]: mail@hmachet.com

✗ #915364 FAILED nfm/patches/alpine.yml https://builds.sr.ht/~leon_plickat/job/915364
Reply to thread Export thread (mbox)