Add memory allocation check

darcs-hash:20070129175223-ac50b-05b933837cf0522889287069d5ed2fcacaf62b6a.gz
This commit is contained in:
axel 2007-01-30 03:52:23 +10:00
parent 7953863b38
commit 41c9f89fcf

View File

@ -1753,6 +1753,12 @@ static int default_test( wchar_t *b )
void reader_push( wchar_t *name )
{
reader_data_t *n = calloc( 1, sizeof( reader_data_t ) );
if( !n )
{
DIE_MEM();
}
n->name = wcsdup( name );
n->next = data;
sb_init( &n->kill_item );