Bug 205346: fixed a compiler warning about a zero-length format string for

sprintf.
This commit is contained in:
wtc%netscape.com 2003-05-12 18:58:33 +00:00
parent aa16f6222a
commit 05536f8c3a

View File

@ -2495,7 +2495,7 @@ char *
SECU_ErrorStringRaw(int16 err)
{
if (err == 0)
sprintf(SECUErrorBuf, "");
SECUErrorBuf[0] = '\0';
else if (err == SEC_ERROR_BAD_DATA)
sprintf(SECUErrorBuf, "Bad data");
else if (err == SEC_ERROR_BAD_DATABASE)