PERFORCE change 134575 for review

John Birrell jb at FreeBSD.org
Thu Jan 31 19:50:49 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=134575

Change 134575 by jb at 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();
 


More information about the p4-projects mailing list