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

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

Merge "DnsResolver/res_comp.cpp - fix bugprone-branch-clone warning" am: 1017d5c4 am: 66503340

Change-Id: I9f4f8e8cb07b49abea408018b86e9c2744a9481b
parents 64cbbf39 66503340
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;