Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1017d5c4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "DnsResolver/res_comp.cpp - fix bugprone-branch-clone warning"

parents b6d74c5d 8a81c815
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -148,9 +148,7 @@ bool res_hnok(const char* dn) {

        if (periodchar(ch)) {
            ;
        } else if (periodchar(pch)) {
            if (!borderchar(ch)) return false;
        } else if (periodchar(nch) || nch == '\0') {
        } else if (periodchar(pch) || periodchar(nch) || nch == '\0') {
            if (!borderchar(ch)) return false;
        } else {
            if (!middlechar(ch)) return false;