Bugzilla Bug 353729: handle PR_vsmprintf failure in PR_vfprintf. r=timeless

This commit is contained in:
wtchang%redhat.com 2006-11-30 00:39:19 +00:00
parent e02f09041f
commit 0c1349c77a

View File

@ -58,6 +58,9 @@ PR_IMPLEMENT(PRUint32) PR_vfprintf(PRFileDesc* fd, const char *fmt, va_list ap)
/* XXX this could be better */
PRUint32 rv, len;
char* msg = PR_vsmprintf(fmt, ap);
if (NULL == msg) {
return -1;
}
len = strlen(msg);
#ifdef XP_OS2
/*