src/mess/softlist.c
| r7735 | r7736 | |
| 356 | 356 | |
| 357 | 357 | /* Handle the supported flag */ |
| 358 | 358 | elem->info.supported = SOFTWARE_SUPPORTED_YES; |
| 359 | | if ( ! strcmp( supported, "partial" ) ) |
| 359 | if ( supported && ! strcmp( supported, "partial" ) ) |
| 360 | 360 | elem->info.supported = SOFTWARE_SUPPORTED_PARTIAL; |
| 361 | | if ( ! strcmp( supported, "no" ) ) |
| 361 | if ( supported && ! strcmp( supported, "no" ) ) |
| 362 | 362 | elem->info.supported = SOFTWARE_SUPPORTED_NO; |
| 363 | 363 | |
| 364 | 364 | /* Add the entry to the end of the list */ |
| r7735 | r7736 | |
| 533 | 533 | UINT32 offset = strtol( str_offset, NULL, 16 ); |
| 534 | 534 | char *s_name = (char *)pool_malloc_lib(swlist->pool, ( strlen( str_name ) + 1 ) * sizeof(char) ); |
| 535 | 535 | char *hashdata = (char *)pool_malloc_lib( swlist->pool, sizeof(char) * ( strlen(str_crc) + strlen(str_sha1) + 7 ) ); |
| 536 | | int baddump = ( !strcmp(str_status,"baddump") ) ? 1 : 0; |
| 537 | | int nodump = ( !strcmp(str_status,"nodump" ) ) ? 1 : 0; |
| 536 | int baddump = ( str_status && !strcmp(str_status,"baddump") ) ? 1 : 0; |
| 537 | int nodump = ( str_status && !strcmp(str_status,"nodump" ) ) ? 1 : 0; |
| 538 | 538 | |
| 539 | 539 | if ( !s_name || !hashdata ) |
| 540 | 540 | return; |