summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%google.com <devnull@localhost>2008-05-31 15:10:17 +0000
committerwtc%google.com <devnull@localhost>2008-05-31 15:10:17 +0000
commit14481739c434df6ff3a242d3e9cfe5e40e0e5da3 (patch)
treed7ea4440f68e1289a7f11b456f08764c83fa01ce
parent5964dbe202f36586c6aad4b834289a5be6a24987 (diff)
downloadnspr-hg-14481739c434df6ff3a242d3e9cfe5e40e0e5da3.tar.gz
Bug 434397: Removed duplicated code in PR_snprintf() and PR_vsnprintf().
The patch is contributed by Serge Gautherie <sgautherie.bz@free.fr>. r=wtc
-rw-r--r--pr/src/io/prprf.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/pr/src/io/prprf.c b/pr/src/io/prprf.c
index fa444e2c..8dda74ce 100644
--- a/pr/src/io/prprf.c
+++ b/pr/src/io/prprf.c
@@ -1160,11 +1160,6 @@ PR_IMPLEMENT(PRUint32) PR_snprintf(char *out, PRUint32 outlen, const char *fmt,
va_list ap;
PRUint32 rv;
- PR_ASSERT((PRInt32)outlen > 0);
- if ((PRInt32)outlen <= 0) {
- return 0;
- }
-
va_start(ap, fmt);
rv = PR_vsnprintf(out, outlen, fmt, ap);
va_end(ap);