diff options
| -rw-r--r-- | imp.ha | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -280,13 +280,13 @@ fn setfieldaccount(acc: *account, key: str, val: str) void = { val = strings::trim(val, '"'); }; - if (strings::compare(key, "user") == 0) { + if (key == "user") { acc.user = val; - } else if (strings::compare(key, "pass") == 0) { + } else if (key == "pass") { acc.pass = val; - } else if (strings::compare(key, "notes") == 0) { + } else if (key == "notes") { acc.notes = val; - } else if (strings::compare(key, "match") == 0) { + } else if (key == "match") { acc.url = val; } else { free(&val); |
