From: Nicholas Clark Date: Mon, 19 Apr 2010 14:35:59 +0000 (+0100) Subject: Possible undefined behaviour, spotted by gcc 4.5.0 and HP's updated compiler. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e05a0d7494b04196ac0b6dbeb026a51df2a2a73d;p=p5sagit%2Fp5-mst-13.2.git Possible undefined behaviour, spotted by gcc 4.5.0 and HP's updated compiler. --- diff --git a/perlio.c b/perlio.c index ddcc357..d015b58 100644 --- a/perlio.c +++ b/perlio.c @@ -4110,7 +4110,7 @@ PerlIOBuf_get_base(pTHX_ PerlIO *f) if (!b->buf) { if (!b->bufsiz) b->bufsiz = 4096; - b->buf = Newxz(b->buf,b->bufsiz, STDCHAR); + Newxz(b->buf,b->bufsiz, STDCHAR); if (!b->buf) { b->buf = (STDCHAR *) & b->oneword; b->bufsiz = sizeof(b->oneword);