mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Fix some C++ issues.
This commit is contained in:
parent
20f37f20e8
commit
08cfb27f35
@ -571,7 +571,7 @@ static bool verify_command(const char *cmd)
|
||||
bool network_cmd_send(const char *cmd_)
|
||||
{
|
||||
if (!netplay_init_network())
|
||||
return NULL;
|
||||
return false;
|
||||
|
||||
char *command = strdup(cmd_);
|
||||
if (!command)
|
||||
|
@ -236,7 +236,7 @@ bool zlib_parse_file(const char *file, zlib_file_cb file_cb, void *userdata)
|
||||
|
||||
const struct zlib_file_backend *backend = zlib_get_default_file_backend();
|
||||
if (!backend)
|
||||
return NULL;
|
||||
return false;
|
||||
|
||||
ssize_t zip_size = 0;
|
||||
void *handle = backend->open(file);
|
||||
|
@ -79,7 +79,7 @@ int rl_fnmatch(const char *pattern, const char *string, int flags) {
|
||||
case '\\':
|
||||
c++;
|
||||
// Dangling escape at end of pattern
|
||||
if (c == '\0') {
|
||||
if (*c == '\0') { // FIXME: Was c == '\0' (makes no sense). Not sure if c == NULL or *c == '\0' is intended. Assuming *c due to c++ right before.
|
||||
return FNM_NOMATCH;
|
||||
}
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user