RebiewBoard #670.
Patch by icchan. Thanks!
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5959
b64f7644-9d1e-0410-96f1-
a4d463321fa5
}
file = malloc( sizeof( hb_csv_file_t ) );
+ if( file == NULL )
+ {
+ return file;
+ }
+
file->fileref = fileref;
file->eof = 0;
file->parse_state = CSV_PARSE_SEEK;
}
cell = malloc( sizeof( hb_csv_cell_t ) );
+ if( cell == NULL )
+ {
+ return cell;
+ }
+
cell->cell_row = file->curr_row;
cell->cell_col = file->curr_col;
index = 0;