X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Finternet_addressing.c;h=283321f69444ed8c176e8f8237cfb60b8dc06f48;hb=e3d7efdd9f298cac8e009cfec3d4c631433c657e;hp=1a8bdea1253b06bc1e1c7226f5506dacc131c5fe;hpb=4d7b86eab71baaed6a1953e4d1968a0988456661;p=citadel.git diff --git a/citadel/internet_addressing.c b/citadel/internet_addressing.c index 1a8bdea12..283321f69 100644 --- a/citadel/internet_addressing.c +++ b/citadel/internet_addressing.c @@ -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);