The big NULL replacement party part 2.

This may take a bit. Trying to do this by operator/command.
This commit is contained in:
Jason Felds
2013-05-03 23:11:42 -04:00
parent 9f24627bf9
commit ba59dd1656
174 changed files with 6644 additions and 6644 deletions
+4 -4
View File
@@ -119,7 +119,7 @@ void BacktraceNames::FromAddr( const void *p )
* between one function and the next, because the first lookup will succeed.
*/
Dl_info di;
if( !dladdr((void *) p, &di) || di.dli_sname == NULL )
if( !dladdr((void *) p, &di) || di.dli_sname == nullptr )
{
if( !dladdr( ((char *) p) - 8, &di) )
return;
@@ -175,7 +175,7 @@ static int osx_find_image( const void *p )
for( unsigned i = 0; i < image_count; i++ )
{
const struct mach_header *header = _dyld_get_image_header(i);
if( header == NULL )
if( header == nullptr )
continue;
/* The load commands directly follow the mach_header. */
@@ -233,7 +233,7 @@ void BacktraceNames::FromAddr( const void *p )
/* Find the link-edit pointer. */
const char *link_edit = osx_find_link_edit( _dyld_get_image_header(index) );
if( link_edit == NULL )
if( link_edit == nullptr )
return;
link_edit += _dyld_get_image_vmaddr_slide( index );
@@ -297,7 +297,7 @@ void BacktraceNames::FromAddr( const void *p )
Address = (intptr_t) p;
char **foo = backtrace_symbols(&p, 1);
if( foo == NULL )
if( foo == nullptr )
return;
FromString( foo[0] );
free(foo);