Added parameter checking for read_part().

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@87 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 23 years ago
parent 14d278894d
commit ffae879f55

@ -41,8 +41,12 @@ part *
read_part( FILE *f )
{
int line = 0;
part *part;
part *part = part_alloc();
if (!f)
return NULL;
part = part_alloc();
if (!part) {
printf( "out of memory\n" );
return NULL;

Loading…
Cancel
Save