The big NULL replacement party part 5.
Right. ' = NULL' would get a lot of these.
This commit is contained in:
@@ -68,7 +68,7 @@ void RageFile_JPEG_init_source( j_decompress_ptr cinfo )
|
||||
{
|
||||
RageFile_source_mgr *src = (RageFile_source_mgr *) cinfo->src;
|
||||
src->start_of_file = true;
|
||||
src->pub.next_input_byte = NULL;
|
||||
src->pub.next_input_byte = nullptr;
|
||||
src->pub.bytes_in_buffer = 0;
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ static RageSurface *RageSurface_Load_JPEG( RageFile *f, const char *fn, char err
|
||||
jerr.pub.error_exit = my_error_exit;
|
||||
jerr.pub.output_message = my_output_message;
|
||||
|
||||
RageSurface *volatile img = NULL; /* volatile to prevent possible problems with setjmp */
|
||||
RageSurface *volatile img = nullptr; /* volatile to prevent possible problems with setjmp */
|
||||
|
||||
if( setjmp(jerr.setjmp_buffer) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user