view Python/getcopyright.c @ 39459:ce11c6c1939d legacy-trunk

Verify verdat which is returned from malloc is not NULL. Ensure we don't pass NULL to free. Klocwork #306 (at least the first part, checking malloc)
author Neal Norwitz <nnorwitz@gmail.com>
date Sat, 12 Aug 2006 03:18:50 +0000
parents d21875d3592b
children 1f7d628c70a9 4105570da30a
line wrap: on
line source

/* Return the copyright string.  This is updated manually. */

#include "Python.h"

static char cprt[] = 
"\
Copyright (c) 2001-2006 Python Software Foundation.\n\
All Rights Reserved.\n\
\n\
Copyright (c) 2000 BeOpen.com.\n\
All Rights Reserved.\n\
\n\
Copyright (c) 1995-2001 Corporation for National Research Initiatives.\n\
All Rights Reserved.\n\
\n\
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.\n\
All Rights Reserved.";

const char *
Py_GetCopyright(void)
{
	return cprt;
}