if (srclen > 0 &&
if (!needsQuoting && srclen > 0 &&
CERT_RFC1485_EscapeAndQuote(char *dst, int dstlen, char *src, int srclen){    int i, reqLen=0;    char *d = dst;    PRBool needsQuoting = PR_FALSE;        /* need to make an initial pass to determine if quoting is needed */    for (i = 0; i < srclen; i++) {	char c = src[i];	reqLen++;	if (SPECIAL_CHAR(c)) {	    /* entirety will need quoting */	    needsQuoting = PR_TRUE;	}	if (c == C_DOUBLE_QUOTE || c == C_BACKSLASH) {	    /* this char will need escaping */	    reqLen++;	}    }    /* if it begins or ends in optional space it needs quoting */    if (srclen > 0 &&	(OPTIONAL_SPACE(src[srclen-1]) || OPTIONAL_SPACE(src[0]))) {	needsQuoting = PR_TRUE;    }        if (needsQuoting) reqLen += 2;    /* space for terminal null */    reqLen++;        if (reqLen > dstlen) {	PORT_SetError(SEC_ERROR_OUTPUT_LEN);	return SECFailure;    }        d = dst;    if (needsQuoting) *d++ = C_DOUBLE_QUOTE;    for (i = 0; i < srclen; i++) {	char c = src[i];	if (c == C_DOUBLE_QUOTE || c == C_BACKSLASH) {	    /* escape it */	    *d++ = C_BACKSLASH;	}	*d++ = c;    }    if (needsQuoting) *d++ = C_DOUBLE_QUOTE;    *d++ = 0;    return SECSuccess;}