]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - lhnet.c
fix a syntax error. Why didn't my gcc catch it? clang does...
[xonotic/darkplaces.git] / lhnet.c
diff --git a/lhnet.c b/lhnet.c
index bb1e0085aaf0240af6555f4565d1213e3240f88d..0b68712c739ba0e8d9c1ffeda4ec39e9dd380f11 100644 (file)
--- a/lhnet.c
+++ b/lhnet.c
@@ -389,7 +389,7 @@ int LHNETADDRESS_FromString(lhnetaddress_t *vaddress, const char *string, int de
        address->addresstype = LHNETADDRESSTYPE_NONE;
        port = 0;
        colon = strrchr(string, ':');
-       if (colon && (colon == strchr(string, ':') || (string[0] == '[' && colon - string > 0 && colon[-1] == ']'))I)
+       if (colon && (colon == strchr(string, ':') || (string[0] == '[' && colon - string > 0 && colon[-1] == ']')))
        //           EITHER: colon is the ONLY colon  OR: colon comes after [...] delimited IPv6 address
        //           fixes misparsing of IPv6 addresses without port
        {