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

Commit b87a1052 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

DnsResolver/res_comp.cpp - fix bugprone-branch-clone warning am: 911cc9ae...

DnsResolver/res_comp.cpp - fix bugprone-branch-clone warning am: 911cc9ae am: cf52acd5 am: 097ebbe7

Change-Id: Ic9a2d6b61189889508e10b5f8146f2ef89d5038a
parents 0d0d621c 097ebbe7
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;