summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--imp.ha8
1 files changed, 4 insertions, 4 deletions
diff --git a/imp.ha b/imp.ha
index b055cd5..d75850d 100644
--- a/imp.ha
+++ b/imp.ha
@@ -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);