* NULL is the abort condition for an invalid header
authorWilfried Göesgens <willi@citadel.org>
Thu, 11 Feb 2010 18:00:19 +0000 (18:00 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 11 Feb 2010 18:00:19 +0000 (18:00 +0000)
citadel/internet_addressing.c

index 1a8bdea1253b06bc1e1c7226f5506dacc131c5fe..283321f69444ed8c176e8f8237cfb60b8dc06f48 100644 (file)
@@ -564,7 +564,7 @@ int convert_field(struct CtdlMessage *msg, const char *beg, const char *end) {
                if (*pos == ':') colonpos = pos;
        }
 
-       if (colonpos < 0) return(0);    /* no colon? not a valid header line */
+       if (colonpos == NULL) return(0);        /* no colon? not a valid header line */
 
        len = end - beg;
        key = malloc(len + 2);