diff options
Diffstat (limited to 'imp.ha')
| -rw-r--r-- | imp.ha | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -65,11 +65,11 @@ export fn main() void = { case 'g' => let spl = strings::split(opt.1, ","); defer free(spl); - append(accfilter.groups, spl...); + append(accfilter.groups, spl...)!; case 'm' => let spl = strings::split(opt.1, ","); defer free(spl); - append(accfilter.urls, spl...); + append(accfilter.urls, spl...)!; case 'n' => accfilter.notes = opt.1; case 'f' => @@ -80,7 +80,7 @@ export fn main() void = { for (let i = 0z; i < len(cmd.args); i += 1) { - append(accfilter.accnames, cmd.args[i]); + append(accfilter.accnames, cmd.args[i])!; }; if (verbose) { @@ -202,7 +202,7 @@ fn accs_filter(accounts: []account, accfilter: filter) []account = { for (let i = 0z; i < len(accounts); i += 1) { let acc = accounts[i]; if (isfiltered(acc, accfilter)) { - append(resaccs, acc); + append(resaccs, acc)!; }; }; return resaccs; @@ -259,7 +259,7 @@ fn parse(data: []u8) ([]account | format::ini::error) = { ... }; setfieldaccount(&acc, strings::dup(entry.1), strings::dup(entry.2)); - append(accounts, acc); + append(accounts, acc)!; case let acc: *account => setfieldaccount(acc, strings::dup(entry.1), strings::dup(entry.2)); }; |
