Date: Fri, 1 Feb 2008 03:50:48 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 134575 for review Message-ID: <200802010350.m113omcm046218@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=134575 Change 134575 by jb@jb_freebsd1 on 2008/02/01 03:49:52 NULL pointer check. Affected files ... .. //depot/projects/dtrace7/src/contrib/opensolaris/tools/ctf/common/memory.c#2 edit Differences ... ==== //depot/projects/dtrace7/src/contrib/opensolaris/tools/ctf/common/memory.c#2 (text) ==== @@ -71,6 +71,9 @@ { char *newstr; + if (str == NULL) + return (NULL); + if ((newstr = strdup(str)) == NULL) memory_bailout();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802010350.m113omcm046218>